Difference between revisions of "Thread:receive"

Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
value = Source:getName(name)
+
value = Source:receive(name)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Revision as of 14:52, 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.

See Also