[−][src]Function holochain_core::instance::dispatch_action_with_observer
pub fn dispatch_action_with_observer<F>(
action_channel: &SyncSender<ActionWrapper>,
observer_channel: &SyncSender<Observer>,
action_wrapper: ActionWrapper,
closure: F
) where
F: 'static + FnMut(&State) -> bool + Send,
Send Action to the Event Queue and create an Observer for it with the specified closure
Panics
Panics if the channels passed are disconnected.