summaryrefslogtreecommitdiffstats
path: root/native/src/runtime.rs
blob: 9fa031f4d42b9f8c3a537e3027f20c4b2df0b32b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
//! Run commands and subscriptions.
use crate::{Event, Hasher};

/// A native runtime with a generic executor and receiver of results.
///
/// It can be used by shells to easily spawn a [`Command`] or track a
/// [`Subscription`].
///
/// [`Command`]: ../struct.Command.html
/// [`Subscription`]: ../struct.Subscription.html
pub type Runtime<Executor, Receiver, Message> =
    iced_futures::Runtime<Hasher, Event, Executor, Receiver, Message>;