Expand description
go-spawn
is a library that provides macros to spawn and join threads with minimal boilerplate.
Modules
Macros
Spawns a thread to execute the given code. Any captured variables will be moved to the spawned thread.
Spawns a thread to execute the given code. Any captured variables will be borrowed by the spawned thread.
Joins the most recent not-yet-joined thread spawned from the current thread by either go!
or
go_ref!
.
Joins all pending threads spawned from the current thread by either go!
or go_ref!
.