Module await::examples::promise
[−]
[src]
"Crate" for rerpresenting the async abstraction of promises / futures
- A
Futurerepresents the potential of a value in the future - A
Promiseis used to complete (a.k.a fulfill) theFuture.
One can say that a Future<T> is in essence an Await<T>, and they wouldn't be wrong.
Example: This does not need to be on this crate
Structs
| Future |
At some point in time, it will hold a value |
| Promise |
Used to fulfill a promise (in other words, complete the |
| PromiseDroppedError |
Signals that the |