Thunk

Trait Thunk 

Source
pub trait Thunk<State, Action, Api>
where Action: Send + 'static, State: Send + 'static, Api: StoreApi<State, Action> + Send + Sync + 'static,
{ // Required method fn execute<'life0, 'async_trait>( &'life0 self, store_api: Arc<Api>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, store_api: Arc<Api>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<F, Fut, State, Action, Api> Thunk<State, Action, Api> for F
where F: Fn(Arc<Api>) -> Fut + Sync, Fut: Future<Output = ()> + Send, Action: Send + 'static, State: Send + 'static, Api: StoreApi<State, Action> + Send + Sync + 'static,