[−][src]Crate ufut
THis crate only provides an alias for futures-micro
, please visit its repository to say
thank you to its authors <3>
Modules
prelude | This module has extras that clash with names in [ |
Macros
or | Polls arbitrarily many futures, returning the first ready value. |
pin | Pins a variable of type |
ready | Unwraps |
zip | Zips arbitrarily many futures, waiting for all to complete. |
Structs
Context | The |
Or | Returns the result of |
Pending | Future for the |
Pin | A pinned pointer. |
PollFn | Future for the |
PollState | Future for the |
Ready | A future that resolves to the provided value. |
Waker | A |
Zip | Waits for two |
Enums
Poll | Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead. |
Traits
Future | A future represents an asynchronous computation. |
Functions
next_poll | Polls a future once. If it does not succeed, return it to try again |
pending | Creates a future that is always pending. |
poll_fn | Creates a future from a function returning |
poll_state | Creates a future from a function returning |
sleep | Goes to sleep until woken by its |
waker | Get the |
yield_once | Pushes itself to the back of the executor queue so some other tasks can do some work. |