Concurrency
Requires TypeScript 5.4 or newer.
npm i ciorentbun i ciorentpnpm i ciorentyarn add ciorentFeatures
Section titled “Features”ciorent provides simple & optimized primitives for concurrency.
| Primitive | Description |
|---|---|
| Sleep | Synchronous and asynchronous sleep functions. |
| Yield | Continue the execution of an asynchronous task on next tick, allowing other tasks to run. |
| Semaphore | Control access to a common resource by multiple tasks. |