UNPKG

ciorent

Version:

A lightweight, low-overhead concurrency library

12 lines (11 loc) 424 B
/** * Continue the execution on next event loop cycle. * * You can `await` this **occasionally** in an expensive synchronous operation to avoid * blocking the main thread and let other asynchronous task to run. */ export declare const nextTick: Promise<void>; export * as mutex from "./mutex.js"; export * as semaphore from "./semaphore.js"; export * as signal from "./signal.js"; export * as promises from "./promises.js";