Debounce promise-returning & async functions.
A function that delays calling fn
until after wait
milliseconds have elapsed since the last time it was called.
Get all registered commands identifiers.
Get all registered commands.
Clear the list of recently used commands.
Execute the active handler for the given command and arguments.
Reject if a command cannot be executed.
Get an active handler for the given command or undefined
.
Returns with all handlers for the given command. If the command does not have any handlers, or the command is not registered, returns an empty array.
Get a command for the given command identifier.
Get a toggled handler for the given command or undefined
.
Get a visible handler for the given command or undefined
.
Test whether there is an active handler for the given command.
Test whether there is a toggled handler for the given command.
Test whether there is a visible handler for the given command.
Register the given command and handler if present.
Throw if a command is already registered for the given command identifier.
Register the given handler for the given command identifier.
If there is already a handler for the given command then the given handler is registered as more specific, and has higher priority during enablement, visibility and toggle state evaluations.
Unregister command from the registry
Unregister command from the registry
The command registry manages commands and handlers.