You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to be able to set hooks from the outside. This takes place in two API sets: the implementation hooking API, and the convenience fluent API.
The implementation hooking API is two calls which have object args and return boolean for success:
set_hook({ ... })
remove_hook({ ... })
The convenience fluent API is a call for each hook and unhook type, take positional args, and return the machine so that they can chain. As a few examples, non-exhaustively:
We need to be able to set hooks from the outside. This takes place in two API sets: the implementation hooking API, and the convenience fluent API.
The implementation hooking API is two calls which have object args and return boolean for success:
set_hook({ ... })
remove_hook({ ... })
The convenience fluent API is a call for each hook and unhook type, take positional args, and return the machine so that they can chain. As a few examples, non-exhaustively:
hook('a', 'b', handler)
hook_action('a', 'b', 'demo', handler)
unhook('a', 'b')
API calls are described at #660.
Fluent calls are described at #699.
The text was updated successfully, but these errors were encountered: