ErlMbox ReceiveMatch Method (ErlPatternMatcher, Int32)NFX Class Library

[This is preliminary documentation and is subject to change.]

Receive a message and match it against a given pattern

Namespace: NFX.Erlang
Assembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public Tuple<IErlObject, int> ReceiveMatch(
	ErlPatternMatcher pm,
	int timeoutMsec = -1
)

Return Value

Type: OnlineTuple IErlObject, OnlineInt32 
Return a tuple containing the received message and index of the pattern in the pm instance that was successfully matched. On timeout the 2nd element of the tuple is -2 and 1st element of the tuple is null. On unsuccessful match the second element of the tuple is -1
See Also