rsxjs
Version:
Resilience Extensions for JS.
8 lines (7 loc) • 338 B
TypeScript
/**
* @file src/breaker/from-async.ts
* @copyright 2018-present Karim Alibhai. All rights reserved.
*/
import { AsyncFunction } from '../types';
import { BreakerOptionsGiven, BreakerFunction } from './types';
export declare function fromAsync<T = any>(originalFn: AsyncFunction<T>, _options?: BreakerOptionsGiven): BreakerFunction<T>;