Difference between revisions of "Thread:set"

(Created page with "{{newin|0.8.0|080|type=function|text=It has been renamed from Thread:send}} Set a value (cross-threads). == Function == === Synopsis === <source lang="lua"> Thread:set(na...")
 
Line 8: Line 8:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|string|name|The name of the message.}}
 
{{param|string|name|The name of the message.}}
{{param|value|value|The contents of the message.}}
+
{{param|boolean, string, number or userdata|value|The contents of the message.}}
 
=== Returns ===
 
=== Returns ===
 
None.
 
None.

Revision as of 14:56, 6 February 2012

Available since LÖVE 0.8.0
It has been renamed from Thread:send.

Set a value (cross-threads).

Function

Synopsis

Thread:set(name, value)

Arguments

string name
The name of the message.
boolean, string, number or userdata value
The contents of the message.

Returns

None.

See Also

  • Thread
  • TSerial can convert tables to/from strings, so you can pass tables between threads.

Other Languages