UNPKG

rsxjs

Version:

Resilience Extensions for JS.

9 lines (8 loc) 368 B
/** * @file src/mutex/from-generator.ts * @description Wrap a mutex around a generator to create a coroutine. * @copyright 2018-present Karim Alibhai. All rights reserved. */ import { MutexOptions } from './types'; import { AsyncFunction } from '../types'; export declare function fromGenerator<T>(fn: GeneratorFunction, options?: MutexOptions): AsyncFunction<T>;