Difference between revisions of "Thread:receive"

Line 9: Line 9:
 
{{param|string|name|The name of the message.}}
 
{{param|string|name|The name of the message.}}
 
=== Returns ===
 
=== Returns ===
{{param|value|value|The contents of the message.}}
+
{{param|value|value|The contents of the message or nil when no message in queue.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::Thread]]
 
* [[parent::Thread]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Receive a message from a thread.}}
 
{{#set:Description=Receive a message from a thread.}}

Revision as of 15:19, 20 September 2010

Receive a message from a thread. Returns nil when message is not in the queue.

Function

Synopsis

value = Source:receive(name)

Arguments

string name
The name of the message.

Returns

value value
The contents of the message or nil when no message in queue.

See Also