crnt
v0.0.31
Published
TypeScript library for async concurrency primitives
Maintainers
Readme
CRNT (Current)
CRNT is a TypeScript library for async and concurrent programming primitives.
Installation
npm install crnt
pnpm instsall crnt
bun add crntOverview / Philosophy
- TypeScript - first
- Unopinionated, lightweight, and un-intrusive
- Support for modern constructs (ex: AbortController)
- Performance - optimized for speed and reducing memory leaks.
- Synchronous and asynchronous methods.
The library is a modern replacement for the following popular NPM libraries
High level structure
Most operations return Promises.
However, there are various synchronous maybe*() methods which operates synchronously. These operations return true if they were successful, false otherwise.
Operations can be cancelled, either by a timeout value or an AbortSignal.
