Commit graph

133 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
dd1b1cac0a Accept a function pointer in Subscription::map
Instead of a closure, a function pointer can be hashed and used to
uniquely identify a particular `Subscription`.

This should fix a bug where two different instances of `Subscription`
producing the same output were not treated differently by the runtime,
causing one of them to be ignored.
2020-10-29 10:27:18 +01:00
Héctor Ramón Jiménez
1501a93915 Disable time module on Wasm for now 2020-04-30 05:51:41 +02:00
Héctor Ramón Jiménez
e2076612cb Implement time::every in iced_futures 2020-04-30 05:37:44 +02:00
Héctor Ramón Jiménez
3f4770fd28 Bump versions 🎉 2020-04-26 17:20:56 +02:00
Héctor Ramón Jiménez
63f54edf0c Use Rc in Command::map for Wasm 2020-04-25 02:29:40 +02:00
Olivier Pinon
f1e18d0935 #321 cargo fmt 2020-04-25 02:05:17 +02:00
Olivier Pinon
ce2ed35a1a #321 Fix async examples by feature-gating Command implementations + Add pokedex example in CI so that at least one async example is runned on CI 2020-04-25 02:03:17 +02:00
Héctor Ramón Jiménez
4808fcbd7e Bump versions 🎉 2020-04-15 08:58:14 +02:00
Héctor Ramón Jiménez
335ad1dd1d Enable feature flags in docs.rs 2020-04-05 04:52:03 +02:00
Rob Ede
070e8e70e4
doc feature flags in futures 2020-04-04 02:25:40 +01:00
Héctor Ramón Jiménez
d0cca658a1 Bump all versions 🎉 2020-04-02 17:40:20 +02:00
Héctor Ramón Jiménez
743c8851d4 Fix broken link in Tracker::broadcast docs 2020-04-02 03:50:39 +02:00
Héctor Ramón Jiménez
0f745f0c14 Fix missing link in Command documentation 2020-04-02 03:48:29 +02:00
Héctor Ramón Jiménez
e1e42f87bd Add examples to subscription::Recipe docs 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
512dbd5076 Fix missing link in Tracker::broadcast docs 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
4979635764 Fix missing link in Executor::enter doc comment 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
338fff35ac Make subscription::Recipe cross-platform
By removing the `Send` requirement when targetting Wasm
2020-03-26 14:55:02 +01:00
Héctor Ramón Jiménez
138110f596 Simplify iced_futures::Command implementation 2020-03-26 14:54:47 +01:00
Héctor Ramón Jiménez
ec1f34ccea Add BoxFutures and BoxStream to iced_futures 2020-03-26 14:53:58 +01:00
Héctor Ramón Jiménez
a6531c840b Implement Subscription::with 2020-03-05 02:08:53 +01:00
Héctor Ramón Jiménez
09cf0b7af3 Enter executor context only on Recipe creation 2020-02-16 11:31:37 +01:00
Héctor Ramón Jiménez
ca213922d0 Drop Send in Command and Executor on Wasm 2020-02-05 04:14:26 +01:00
Héctor Ramón Jiménez
8f52604987 Use reqwest and tokio in pokedex example 2020-02-05 01:40:27 +01:00
Héctor Ramón Jiménez
6d46833eb2 Support event subscriptions in iced_web
Also improves the overall web runtime, avoiding nested update loops.
2020-02-04 03:28:47 +01:00
Héctor Ramón Jiménez
a30553ddbb Forbid unsafe code and Rust 2018 idioms 2020-01-20 10:52:06 +01:00
Héctor Ramón Jiménez
91d9d65a03 Improve consistency in executor documentation 2020-01-20 10:49:25 +01:00
Héctor Ramón Jiménez
7bb6411dfc Write documentation for executor::WasmBindgen 2020-01-20 10:39:17 +01:00
Héctor Ramón Jiménez
f14009601e Write documentation for iced_futures 2020-01-20 09:49:17 +01:00
Héctor Ramón Jiménez
04086a90c9 Implement WasmBindgen executor and reorganize 2020-01-20 05:43:09 +01:00
Héctor Ramón Jiménez
90690702e1 Add Application::Executor associated type 2020-01-20 04:47:36 +01:00
Héctor Ramón Jiménez
35760ac68f Make thread-pool optional in iced_futures 2020-01-19 11:08:47 +01:00
Héctor Ramón Jiménez
b8b0d97525 Rename Receiver to Sender in Runtime 2020-01-19 11:08:32 +01:00
Héctor Ramón Jiménez
b5b17ed4d8 Create iced_futures and wire everything up 2020-01-19 10:17:44 +01:00