rsxjs
Version:
Resilience Extensions for JS.
14 lines (13 loc) • 409 B
TypeScript
/**
* @file src/semaphore/types.ts
* @copyright 2018-present Karim Alibhai. All rights reserved.
*/
import { Store } from '../store';
export interface SemaphoreOptions {
size: number;
failFast: boolean;
name?: string;
store: Store;
}
export declare type SemaphoreOptionsGiven = Partial<SemaphoreOptions>;
export declare function defaults(options?: SemaphoreOptionsGiven): SemaphoreOptions;