zest-core 0.1.1

Application contract and async runtime for the zest GUI framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! [`BoxFuture`]: the boxed future type shared by `Task` and `Subscription`.

use alloc::boxed::Box;
use core::{future::Future, pin::Pin};

/// Boxed future producing a value of type `T`. Shared between [`Task`]
/// and [`Subscription`].
///
/// [`Task`]: crate::application::Task
/// [`Subscription`]: crate::application::Subscription
pub type BoxFuture<T> = Pin<Box<dyn Future<Output = T> + 'static>>;