1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[]
= "poll-promise"
= "0.3.0"
= ["Embark <opensource@embark-studios.com>"]
= "MIT OR Apache-2.0"
= "Poll the result of an async operation in a game or immediate mode GUI."
= "2021"
= "https://github.com/EmbarkStudios/poll-promise"
= "https://github.com/EmbarkStudios/poll-promise"
= "README.md"
= ["asynchronous"]
= ["promise", "poll", "async", "gamedev", "gui"]
= ["LICENSE-APACHE", "LICENSE-MIT", "**/*.rs", "Cargo.toml"]
[]
= true
= ["--cfg", "docsrs"]
[]
[]
## If you enable the `async-std` feature you can use [`Promise::spawn_async`] and [`Promise::spawn_blocking`]
## which will spawn tasks in the surrounding async-std runtime.
= ["dep:async-std"]
## If you enable the `smol` feature you can use [`Promise::spawn_async`] and [`Promise::spawn_local`]
## which will spawn tasks using the smol executor. Remember to tick the smol executor with [`tick`] and [`tick_local`].
= ["dep:smol"]
## Enabling the `smol_tick_poll` feature (together with `smol`) calling [`Promise::poll`] will automatically tick the smol executor.
## This means you do not have to worry about calling [`tick`] but comes at the cost of loss of finer control over the executor.
##
## Since calling [`tick_local`] will block the current thread, running multiple local promises at once with `smol_tick_poll` enabled
## may also cause stuttering.
##
## poll-promise will automatically tick the smol executor with this feature disabled for you when using [`Promise::block_until_ready`]
## and friends, however.
= []
## If you enable the `tokio` feature you can use [`Promise::spawn_async`], [`Promise::spawn_local`] and [`Promise::spawn_blocking`]
## which will spawn tasks in the surrounding tokio runtime.
= ["dep:tokio"]
## If you enable the `web` feature you can use [`Promise::spawn_local`] which will spawn tasks using
## [`wasm_bindgen_futures::spawn_local`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen_futures/fn.spawn_local.html).
= ["wasm-bindgen", "wasm-bindgen-futures"]
[]
= { = "1.12", = true }
= "0.2"
= { = "1.2.5", = true }
= "1.1"
= { = "1", = [
"rt",
"rt-multi-thread",
"sync",
"macros",
], = true }
= { = "0.2", = true }
= { = "0.4", = true }
[]
= "1.7.0"