Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/Evt.getCtx.ts>getCtxFactory

💧EventEmitter's typesafe replacement
Go to Latest
function getCtxFactory
import { getCtxFactory } from "https://deno.land/x/evt@v2.4.13/lib/Evt.getCtx.ts";

https://docs.evt.land/api/evt/getctx

Evt.getCtx(obj) an instance of Ctx, always the same for a given object. No strong reference to the object is created when the object is no longer referenced it's associated Ctx will be freed from memory.