0.0.6 • Published 11 months ago
@steeringwaves/context v0.0.6
@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