Skip to main contentCrate versust
Source - 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.
- NoSuccessfulJobError
- An error returned from the
race function or the rush function.
- 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.
- 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.