@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
12 lines • 521 B
TypeScript
/**
* Schedules in 1ms a Promise to be resolved during the `timers` phase.
* Awaiting this Promise will force the whole event queue to be executed.
*
* Caution: as the execution of the event queue might lead to new enqueuing, this might take significant time.
*/
export declare function nextEventLoop(): Promise<void>;
/**
* Schedules in 1ms a callback for execution during the next `timers` phase.
*/
export declare function callInNextEventLoop(callback: () => void): void;
//# sourceMappingURL=eventLoop.d.ts.map