Module await::examples::async [] [src]

Helper functions

Currently harcoded to work with Thread's

Example: This does not need to be on this crate

Functions

any

Returns an Await that will await for any of the inputs to finish. This method returns immediatly.

await_all

Returns an Await that will await for all inputs to finish and produce a Vec with the results. This method returns immediatly.

await_all_box

Returns an Await that will await for all inputs to finish and produce a Vec with the results. This method returns immediatly.

parallel

Forks all the Await's in parallel.

run_synchronously

Runs the Await on the current thread and wont return until the result is ready.

spawn

Starts a new Thread and executes the Await there. This method returns immediatly.