Expand description
Utility functions
Modules§
Structs§
- F64
- A newtype wrapper encapsulating a 64-bit floating-point value. It provides an abstraction over the underlying primitive to support precise numerical handling.
Traits§
Functions§
- pending_
if - Awaits a provided future if a condition holds, otherwise yields a pending future that never resolves. This function evaluates a boolean and, when true, awaits and returns the output of the supplied future; if false, it defers execution indefinitely by awaiting a future that remains pending.
- select_
all - Awaits a collection of futures concurrently and returns the output of the first future that completes.
- select_
ret - Selects between two futures and returns the output from the one that completes first. This function accepts two futures and, using a combinator, races them to yield the result of the first future that resolves.
- select_
ret3 - Returns a future that resolves with the output of the first among three given futures to complete. This function concurrently races the three input futures and awaits the one that finishes first, effectively combining them into a single asynchronous computation whose result is that of the first completed future.
- select_
ret4 - Returns the output of the first completed future among four concurrently evaluated futures. This function accepts four futures as parameters and returns a new future that resolves with the result of the first future to complete, ensuring a non-blocking selection process.
- select_
ret5 - Returns a future that yields the output of the earliest completed one among five provided futures.