package
Version:
v0.0.0-...-4828a9b
Opens a new window with list of versions in this module.
Published: Oct 16, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Dispatch(action interface{})
Dispatch dispatches the given action to all registered callbacks.
Unregister unregisters the callback previously registered via a call to
Register.
ID is a unique identifier representing a registered callback function.
func Register(callback func(action interface{})) ID
Register registers the callback to handle dispatched actions, the returned
ID may be used to unregister the callback later.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.