@steeringwaves/context
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@steeringwaves/context

workflow

A typescript context library.

Example

const Context = require("@steeringwaves/context").default;

const parent = new Context();
const child = new Context({ Parent: parentCtx });
parent.on("done", () => {
	console.log("parent done");
});

child.on("done", () => {
	console.log("child done");
});

console.log(child.Done()); // false

parent.Cancel();

console.log(child.Done()); // true

Readme

Keywords

none

Package Sidebar

Install

npm i @steeringwaves/context

Weekly Downloads

90

Version

0.0.6

License

ISC

Unpacked Size

161 kB

Total Files

40

Last publish

Collaborators

  • lbainbridge
  • devmcclu
  • maxattax
  • 1800alex