hemerajs / hemera

🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any way to unregister an extension?

faloi opened this issue · comments

I didn't found it in the tests nor the documentation: is there anyway to remove an extension after it has been set?

I imagine something like this:

const extension = hemera.ext('onAct', async function (hemera) {
   // some code
});

hemera.removeExt(extension);
// or extension.remove(), whatever

Hi @faloi this is currently not possible.

Closing due to inactivity.