Difference between revisions of "love.thread.newChannel"

m
 
Line 2: Line 2:
 
Create a new unnamed thread channel.
 
Create a new unnamed thread channel.
  
One use for them is to pass new unnamed channels to other threads via [[Channel:push]]
+
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 11: Line 11:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|Channel|channel|A unnamed channel object which can be further manipulated.}}
+
{{param|Channel|channel|The new Channel object.}}
  
 
== See Also ==
 
== See Also ==
Line 17: 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