0.3.1 • Published 2 years ago

async-cell v0.3.1

Weekly downloads
-
License
Unlicense
Repository
github
Last release
2 years ago

async-cell

npm GitHub Workflow Status NPM

An async cell that holds a value and can alert users when a value is inserted.

Examples

const cell: AsyncCell<string> = new AsyncCell();

// Inserts the text hello world into the cell after a second.
setTimeout(() => cell.insert("Hello, world!"), 1000);

// Waits for the value to be inserted into the cell.
const value = await cell.load();
console.log(value);
0.3.0

2 years ago

0.3.1

2 years ago

0.2.0

3 years ago