hookable icon indicating copy to clipboard operation
hookable copied to clipboard

hook events

Open pi0 opened this issue 2 years ago • 0 comments

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 }

pi0 avatar Mar 16 '22 19:03 pi0