Skip to main content
The Deno 2 Release Candidate is 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.5.2/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.