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...")
 
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]]
 
== 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|A unnamed channel object which can be further manipulated.}}
  
 
== See Also ==
 
== See Also ==

Revision as of 05:46, 30 March 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

Function

Synopsis

channel = love.thread.newChannel( )

Arguments

None.

Returns

Channel channel
A unnamed channel object which can be further manipulated.

See Also

Other Languages