[This is preliminary documentation and is subject to change.]
Receive a message and match it against a given pattern
Namespace: NFX.ErlangAssembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
public Tuple<IErlObject, int> ReceiveMatch(
ErlPatternMatcher pm,
int timeoutMsec = -1
)
public Tuple<IErlObject, int> ReceiveMatch(
ErlPatternMatcher pm,
int timeoutMsec = -1
)
Public Function ReceiveMatch (
pm As ErlPatternMatcher,
Optional timeoutMsec As Integer = -1
) As Tuple(Of IErlObject, Integer)
Public Function ReceiveMatch (
pm As ErlPatternMatcher,
Optional timeoutMsec As Integer = -1
) As Tuple(Of IErlObject, Integer)
public:
Tuple<IErlObject^, int>^ ReceiveMatch(
ErlPatternMatcher^ pm,
int timeoutMsec = -1
)
public:
Tuple<IErlObject^, int>^ ReceiveMatch(
ErlPatternMatcher^ pm,
int timeoutMsec = -1
)
member ReceiveMatch :
pm : ErlPatternMatcher *
?timeoutMsec : int
(* Defaults:
let _timeoutMsec = defaultArg timeoutMsec -1
*)
-> Tuple<IErlObject, int>
member ReceiveMatch :
pm : ErlPatternMatcher *
?timeoutMsec : int
(* Defaults:
let _timeoutMsec = defaultArg timeoutMsec -1
*)
-> Tuple<IErlObject, int>
Return Value
Type:
Tuple IErlObject,
Int32 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