Difference between revisions of "love.thread.newChannel"

(Created page with "{{newin|0.9.0|090|type=function}} Create a new thread channel. == Function == === Synopsis === <source lang="lua"> channel = love.thread.newChannel( ) </source> === Arguments...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
Create a new thread channel.
+
Create a new unnamed thread channel.
 +
 
 +
One use for them is to pass new unnamed channels to other threads via [[Channel:push]] on a named channel.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 9: Line 11:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|Channel|channel|A channel object which can be further manipulated.}}
+
{{param|Channel|channel|The new Channel object.}}
  
 
== See Also ==
 
== See Also ==
Line 15: Line 17:
 
* [[Constructs::Channel]]
 
* [[Constructs::Channel]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a new thread channel.}}
+
{{#set:Description=Creates a new unnamed thread channel.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.thread.newChannel}}
 
{{i18n|love.thread.newChannel}}

Latest revision as of 08:34, 18 December 2013

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

Create a new unnamed thread channel.

One use for them is to pass new unnamed channels to other threads via Channel:push on a named channel.

Function

Synopsis

channel = love.thread.newChannel( )

Arguments

None.

Returns

Channel channel
The new Channel object.

See Also

Other Languages