Module compute

Module compute 

Source

Structs§

BackgroundTask
Handle for a background task

Functions§

background
Run a computation in the background (non-blocking) Returns a handle that can be joined
join
Run two computations in parallel and wait for both to complete
map_reduce
Map-reduce pattern: parallel map followed by reduce
num_workers
Get the number of available CPU cores
parallel
Run a computation in parallel across multiple items