{{newinoldin|[[0.7.0]]|070|[[0.8.0]]|080|type=function|text=It has been renamed to [[Thread:get]]}}
Receive a message from a thread.
Returns nil when a message is not in the message box.
== Function ==
=== Synopsis ===
<source lang="lua">
value = Thread:receive(name)
</source>
=== Arguments ===
{{param|string|name|The name of the message.}}
=== Returns ===
{{param|Variant|value|The contents of the message or nil when no message in message box.}}
== See Also ==
* [[parent::Thread]]
[[Category:Functions]]
{{#set:Description=Receive a message from a thread.}}
== Other Languages ==
{{i18n|Thread:receive}}