TThreadEvent
A thread event object.
A basic synchronization object that allows one thread to signal an event to other threads. It manages an internal flag that can be set or cleared, and provides methods to wait for the event to be set.
Methods
Method Clear()
Resets the internal flag to false.
After clearing, threads calling Wait will block until Set is called to set the internal flag to True again.
Method Wait()
Waits for the event to be set.
This method could block indefinitely if the event is never set. If the event is already set, the method returns immediately.
Method Wait:Int(timeout:ULong, unit:ETimeUnit = ETimeUnit.Milliseconds)
Waits for the event to be set, with a timeout.
If the timeout is reached before the event is set, the method returns False.
Method IsSet:Int()
Returns whether the event is set or not.
