@stdext/collections@0.0.5
latest
halvardssm/stdextExtends @std/collections. The collections package contains commonly used utilities and structures.
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
JSR Score
88%
Published
8 months ago (0.0.5)
@stdext/collections
The collections package contains commonly used utilities and structures.
Entrypoints
Deferred Stack
Contains the DeferredStack utility class.
const deferred = new DeferredStack<number>({ maxSize: 1 }); deferred.add(1); const e1 = await deferred.pop(); setTimeout(() => e1.release(), 5000); const e2 = await deferred.pop(); // will be queued until e1 is released
Add Package
deno add jsr:@stdext/collections
Import symbol
import * as collections from "@stdext/collections";
---- OR ----
Import directly with a jsr specifier
import * as collections from "jsr:@stdext/collections";
Add Package
npx jsr add @stdext/collections
Import symbol
import * as collections from "@stdext/collections";
Add Package
yarn dlx jsr add @stdext/collections
Import symbol
import * as collections from "@stdext/collections";
Add Package
pnpm dlx jsr add @stdext/collections
Import symbol
import * as collections from "@stdext/collections";
Add Package
bunx jsr add @stdext/collections
Import symbol
import * as collections from "@stdext/collections";