mirror of https://github.com/Hilbis/Hilbish
docs(bait): document catchOnce
parent
c6edbc20af
commit
6bff669abe
|
@ -1,4 +1,6 @@
|
|||
catch(name, cb) > Catches a hook with `name`. Runs the `cb` when it is thrown
|
||||
|
||||
catchOnce(name, cb) > Same as catch, but only runs the `cb` once and then removes the hook
|
||||
|
||||
throw(name, ...args) > Throws a hook with `name` with the provided `args`
|
||||
|
||||
|
|
Loading…
Reference in New Issue