Module await::examples::promise [] [src]

"Crate" for rerpresenting the async abstraction of promises / futures

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 T

Promise

Used to fulfill a promise (in other words, complete the Future)

PromiseDroppedError

Signals that the Promise dropped before being fullfilled. Liar...