Module thread

Source
Expand description

Thread utilities.

Structs§

JoinOnDropHandle
Wraps a JoinHandle so that the child thread is joined when the handle is dropped, rather than detached. If the child thread panics, JoinOnDropHandle will panic when dropped.
UnparkOnDropHandle
Wraps a JoinHandle so that the child thread is unparked (and then detached as usual) when the handle is dropped.

Traits§

JoinHandleExt
Extension methods for JoinHandle.