match package:distributed-process

Match against any message of the right type
Opaque type used in receiveWait and receiveTimeout
Match against an arbitrary message. matchAny removes the first available message from the process mailbox. To handle arbitrary raw messages once removed from the mailbox, see handleMessage and unwrapMessage.
Match against an arbitrary message. Intended for use with handleMessage and unwrapMessage, this function only removes a message from the process mailbox, if the supplied condition matches. The success (or failure) of runtime type checks deferred to handleMessage and friends is irrelevant here, i.e., if the condition evaluates to True then the message will be removed from the process mailbox and decoded, but that does not guarantee that an expression passed to handleMessage will pass the runtime type checks and therefore be evaluated.
Match on a typed channel
Match against any message of the right type that satisfies a predicate
Match against any message, regardless of the underlying (contained) type
Match against any message (regardless of underlying type) that satisfies a predicate
Match on an arbitrary STM action. This rather unusaul match primitive allows us to compose arbitrary STM actions with checks against our process' mailbox and/or any typed channel ReceivePorts we may hold. This allows us to process multiple input streams along with our mailbox, in just the same way that matchChan supports checking both the mailbox and an arbitrary set of typed channels in one atomic transaction. Note there are no ordering guarnatees with respect to these disparate input sources.
Remove any message from the queue