Implement Runtime and Executor in iced_core

They can be leveraged by shells to easily execute commands
and track subscriptions.
This commit is contained in:
Héctor Ramón Jiménez 2020-01-19 09:06:48 +01:00
parent 32f7ca261f
commit d50ff9b5d9
5 changed files with 97 additions and 4 deletions

View file

@ -12,6 +12,8 @@ repository = "https://github.com/hecrj/iced"
command = ["futures"]
# Exposes a future-based `Subscription` type
subscription = ["futures", "log"]
# Exposes a `runtime` module meant to abstract over different future executors
runtime = ["command", "subscription"]
[dependencies]
futures = { version = "0.3", optional = true }