Receives a message from another thread and gives up if no match arrives within a specified duration.
bool receiveTimeout(T...) (
Receive a message from another thread, or block until
if no messages of the specified types are available. This function works
by pattern matching a message against a set of delegates and executing
the first match found.
If a delegate that accepts a
Variant is included as
the last argument, it will match any message that was not
matched by an earlier delegate. If more than one argument is sent,
Variant will contain a
Tuple of all values
|duration|| Duration, how long to wait. If |
|ops||Variadic list of function pointers and delegates. Entries in this list must not occlude later entries.|
true if it received a message and
false if it timed out waiting
OwnerTerminated when the sending thread was terminated.
Sean Kelly, Alex Rønne Petersen, Martin Nowak