Skip to main content

Crate versust

Crate versust 

Source

Macros§

branch
Executes jobs concurrently and immediately returns their JoinHandles.
race
Waits for the fastest job to complete and returns its index and result.
Remaining jobs are terminated.
rush
Waits for the fastest job to complete and returns its index and result.
Remaining jobs continue running in the background.
sync
Waits for all jobs to complete and returns their thread::Results.

Structs§

NoSuccessfulJobError
An error returned from the race function or the rush function.

Functions§

branch
Executes jobs concurrently and immediately returns their JoinHandles.
into_job
Creates a Job<T> from a closure.
into_race_job
Creates a RaceJob<T> from a closure.
race
Waits for the fastest job to complete and returns its index and result.
Remaining jobs are terminated.
rush
Waits for the fastest job to complete and returns its index and result.
Remaining jobs continue running in the background.
sync
Waits for all jobs to complete and returns their thread::Results.

Type Aliases§

Job
A closure that can be executed in a separate thread.
JobResult
The result of a job execution.
RaceJob
A closure that can be executed in a race function.