UNPKG

rsxjs

Version:

Resilience Extensions for JS.

8 lines (7 loc) 310 B
/** * @file src/semaphore/from-async.ts * @copyright 2018-present Karim Alibhai. All rights reserved. */ import { SemaphoreOptionsGiven } from './types'; import { AsyncFunction } from '../types'; export declare function fromAsync<T>(fn: AsyncFunction<T>, _options: SemaphoreOptionsGiven): AsyncFunction<T>;