hookable
hookable copied to clipboard
hook events
Allow inspecting hook calls for (debug) inspection and nonblocking purposes. We can also measure execution time with a flag and provide to event.
API could be like this:
hookable.on(hookNamem, (event) => { /* non blocking */ })
hookable.onAll((event => { })
event = { name: 'hook-name', totalTime: timeInMS }