@steeringwaves/context
v0.0.6
Published
node context library
Downloads
118
Keywords
Readme
@steeringwaves/context
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