It would be possible to add an optional timeout to the
Wait for eventName function
that closes the wait automatically after Timeout msec.
example :
Wait for myEvent (itsOk As Boolean) (Timeout = 10000, EventTimeout as Boolean)
it Timeout is declared after 10000 ms return EventTimeout = True
Wait for eventName function
that closes the wait automatically after Timeout msec.
example :
Wait for myEvent (itsOk As Boolean) (Timeout = 10000, EventTimeout as Boolean)
it Timeout is declared after 10000 ms return EventTimeout = True