fn wait(self: *ResetEvent) void

Block’s the callers thread until the ResetEvent is set(). This is effectively a more efficient version of while (!isSet()) {}. The memory accesses before the set() can be said to happen before wait() returns.

Parameters

self: *ResetEvent,