Expand description
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 [
futures-lite], which depends on us.
Macros§
- or
- Polls arbitrarily many futures, returning the first ready value.
- pin
- Pins a variable of type
Ton the stack and rebinds it asPin<&mut T>. - ready
- Unwraps
Poll<T>or returnsPending. - zip
- Zips arbitrarily many futures, waiting for all to complete.
Structs§
- Context
- The context of an asynchronous task.
- Or
- Returns the result of
leftorrightfuture, preferringleftif both are ready. - Pending
- Future for the
pending()function. - Pin
- A pointer which pins its pointee in place.
- PollFn
- Future for the
poll_fn()function. - Poll
State - Future for the
poll_state()function. - Ready
- A future that resolves to the provided value.
- Waker
- A
Wakeris a handle for waking up a task by notifying its executor that it is ready to be run. - Zip
- Waits for two
Futures to complete, returning both results.
Enums§
- Poll
- Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.
Traits§
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. - poll_
state - Creates a future from a function returning
Pollthat has access to a provided state value. - sleep
- Goes to sleep until woken by its
Wakerbeing called. - waker
- Get the
Wakerinside an async fn where you aren’t supposed to have it. - yield_
once - Pushes itself to the back of the executor queue so some other tasks can do some work.