set method
Switches the event into the signaled state.
Any subsequent calls to the wait method will not block execution of the
calling code.
Implementation
Future<void> set() {
_isSet = true;
while (_queue.isNotEmpty) {
_queue.dequeue();
}
return _ResetEvent._void;
}