Allow switching executor::Default with features
This commit is contained in:
parent
e8316b2087
commit
ad500441af
6 changed files with 34 additions and 28 deletions
|
|
@ -38,12 +38,7 @@ enum Message {
|
|||
}
|
||||
|
||||
impl Application for Todos {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
type Executor = iced_futures::executor::AsyncStd;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
type Executor = iced_futures::executor::WasmBindgen;
|
||||
|
||||
type Executor = iced::executor::Default;
|
||||
type Message = Message;
|
||||
|
||||
fn new() -> (Todos, Command<Message>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue