Strand[R]
Handles a background strand created by spawn.
Fields
done @ Bool[get]Whether the strand has completed execution.
Methods
cancel()
Cancels the strand.
The strand raises CanceledError at once if it is
suspended, and otherwise the next time it suspends. Cancellation is
permanent: each later attempt to suspend raises it again.
join() -> R
Waits until the strand completes and returns its result.
If the strand exited with an error, re-raises it.
wait()
Waits until the strand completes, without returning its result or
re-raising its error as join does.