@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
12 lines • 394 B
TypeScript
import type { Transducer } from "./api.js";
/**
* Yields transducer which wraps incoming values in promises, which each resolve
* after specified delay time (in ms).
*
* @remarks
* Only to be used in async contexts and NOT with {@link transduce} directly.
*
* @param t -
*/
export declare const delayed: <T>(t: number) => Transducer<T, Promise<T>>;
//# sourceMappingURL=delayed.d.ts.map