UNPKG

480 BTypeScriptView Raw
1declare type Thread = {};
2export declare function thread(fn: () => Promise<void>): Promise<void>;
3export declare function getCurrentThread(): Thread;
4export declare function threadPause<T>(val: T): T;
5export declare function threadContinue<T>(thread: Thread, val: T): T;
6export declare function setDataToCurrentThread(key: symbol, val: unknown): void;
7export declare function getDataFromCurrentThread<T>(key: symbol): T | undefined;
8export {};
9//# sourceMappingURL=Thread.d.ts.map
\No newline at end of file