summaryrefslogtreecommitdiffstats
path: root/native/src/runtime.rs
blob: 1b81314f0719bdc4178081ee2c751dae0e3f7a71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Run commands and subscriptions.
use iced_core::event::{self, Event};
use iced_core::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`]: crate::Command
/// [`Subscription`]: crate::Subscription
pub type Runtime<Executor, Receiver, Message> = iced_futures::Runtime<
    Hasher,
    (Event, event::Status),
    Executor,
    Receiver,
    Message,
>;