Difference between revisions of "Channel:supply"

(Created page with "{{newin|0.9.0|090|type=function}} Send a message to the thread channel and wait for a thread to accept it. The name of the message can be any string. The value of the messag...")
 
Line 10: Line 10:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|string|name|The name of the message.}}
 
{{param|string|name|The name of the message.}}
{{param|string|name|The contents of the message.}}
+
{{param|value|value|The contents of the message.}}
 
=== Returns ===
 
=== Returns ===
 
None.
 
None.

Revision as of 06:50, 30 March 2013

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Send a message to the thread channel and wait for a thread to accept it.

The name of the message can be any string. The value of the message can be a boolean, string, number or a LÖVE userdata. Foreign userdata (Lua's files, LuaSocket, ...), functions or tables are not supported.

Function

Synopsis

Channel:push( name , value )

Arguments

string name
The name of the message.
value value
The contents of the message.

Returns

None.

See Also

Other Languages