Waits for the given Event. If the second parameter is greater then -1, it waits maximal timeout milliseconds.
See Implementation
Waits for the given Event. If the second parameter is greater then -1, it waits maximal timeout milliseconds.