UNPKG

for-emit-of

Version:

Turn Node.js Events into Async Iterables

7 lines (6 loc) 229 B
import { Context } from "./types"; export declare const timedOut: unique symbol; export interface TimeoutWrapper { awaiter: Promise<symbol>; } export declare function timeout(value: number, context: Context): TimeoutWrapper;