AsyncEventWaiter::AddEvent (open)

Add a new event to wait for

Syntax

LOADLIB "mod::system/lib/testframework.whlib";

OBJECT FUNCTION AddEvent(RECORD options)

Parameters

RECORD options

Options

conditiontest

BOOLEAN FUNCTION conditiontest() If returns false, events are ignored

datatest

BOOLEAN FUNCTION datatest(RECORD data) If returns data, events are ignored

expandsfunction

RECORD ARRAY FUNCTION expandsfunction(event, data) Returns a list of waits to add

mask

Event mask

Return value

OBJECT

This waiter, for chaining