Hookable
A thread-safe hook system that allows registering and executing sync and async hooks.
Hooks are functions that can be attached to named events and executed when those events are triggered.
Usage
You can assign both async and sync to the same name. If you do that you will always have to call it using call_async.
use Duration;
use sleep;
use Hookable;
Credits
The JS version both inspires this crate and its name