zest-core 0.1.1

Application contract and async runtime for the zest GUI framework.
Documentation
1
2
3
4
5
6
7
8
//! [`SubscriptionGen`]: the boxed closure that yields a subscription's futures.

use alloc::boxed::Box;

use crate::application::BoxFuture;

/// Closure that produces the next future in a Subscription.
pub type SubscriptionGen<M> = Box<dyn FnMut() -> Option<BoxFuture<M>> + 'static>;