Hilbish/docs/bait.txt

7 lines
246 B
Plaintext
Raw Normal View History

2021-10-16 19:38:49 +00:00
catch(name, cb) > Catches a hook with `name`. Runs the `cb` when it is thrown
2021-12-07 21:41:41 +00:00
catchOnce(name, cb) > Same as catch, but only runs the `cb` once and then removes the hook
2021-10-16 19:38:49 +00:00
throw(name, ...args) > Throws a hook with `name` with the provided `args`
2022-02-25 22:00:39 +00:00