Simple FLUX Dispatcher
- Source:
Methods
-
(static) dispatch(event) → {Promise}
-
Parameters:
Name Type Description eventObject An event object - Source:
Returns:
Resolves when all registered callbacks have been called- Type
- Promise
-
(static) register(callback) → {Number}
-
Parameters:
Name Type Description callbackfunction Function to call events with - Source:
Returns:
Dispatch index- Type
- Number