fn join(self: Thread) void

Waits for the thread to complete, then deallocates any resources created on spawn(). Once called, this consumes the Thread object and invoking any other functions on it is considered undefined behavior.

Parameters

self: Thread,