Create iced_futures and wire everything up
This commit is contained in:
parent
d50ff9b5d9
commit
b5b17ed4d8
23 changed files with 196 additions and 195 deletions
14
native/src/runtime.rs
Normal file
14
native/src/runtime.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
//! 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>;
|
||||
|
||||
pub use iced_futures::runtime::Executor;
|
||||
Loading…
Add table
Add a link
Reference in a new issue