WaitForMultipleUntil (open)

Waits for reads and/or writes until a specified time

Syntax

// Core function, no LOADLIB necessary

INTEGER FUNCTION WaitForMultipleUntil(INTEGER ARRAY reads, INTEGER ARRAY writes, DATETIME until)

Parameters

INTEGER ARRAY reads

Handles to wait for (reads, only processes and sockets are supported) You can not directly wait for the termination of a process.

INTEGER ARRAY writes

Handles to wait for (writes, only processes are supported)

DATETIME until

Time to wait until (UTC). Use DEFAULT DATETIME to only check signalled status, and to avoid waiting.

Return value

INTEGER

A handle that is signalled, or -1 when a time-out has occurred

Description

WaitForMultiple waits for readability or writabity of a list of handles.