iced_native/runtime.rs
1//! Run commands and subscriptions.
2use crate::event::{self, Event};
3use crate::Hasher;
4
5/// A native runtime with a generic executor and receiver of results.
6///
7/// It can be used by shells to easily spawn a [`Command`] or track a
8/// [`Subscription`].
9///
10/// [`Command`]: crate::Command
11/// [`Subscription`]: crate::Subscription
12pub type Runtime<Executor, Receiver, Message> = iced_futures::Runtime<
13 Hasher,
14 (Event, event::Status),
15 Executor,
16 Receiver,
17 Message,
18>;