AsyncEventWaiter (open)
This objecttype provides facilities for waiting on specific events. It also allows events expanding into new waits
Syntax
LOADLIB "mod::system/lib/testframework.whlib";
OBJECTTYPE AsyncEventWaiter
Constructor
- MACRO NEW(RECORD options)
Constructor
Functions
- OBJECT FUNCTION AddEvent(RECORD options)
Add a new event to wait for
- OBJECT FUNCTION CheckNow()
Checks if all added events have been fired, aborts if that is not the case
- OBJECT FUNCTION Wait()
Returns a promise that will resolve when all events have been received. After this moment, no manual AddEvent calls are allowed