Difference between revisions of "love.thread.newThread"

m
Line 1: Line 1:
 
{{newin|[[0.7.0]]|070|type=function}}
 
{{newin|[[0.7.0]]|070|type=function}}
Creates a new Thread from a [[File]] or [[Data]] Object.
+
Creates a new Thread from a [[File]] or [[Data]] object.
 
== Function==
 
== Function==
 
=== Synopsis ===
 
=== Synopsis ===
Line 36: Line 36:
 
* [[Constructs::Thread]]
 
* [[Constructs::Thread]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a new Thread from a [[File]] or [[Data]] Object.}}
+
{{#set:Description=Creates a new Thread from a [[File]] or [[Data]] object.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.thread.newThread}}
 
{{i18n|love.thread.newThread}}

Revision as of 08:36, 18 October 2012

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

Creates a new Thread from a File or Data object.

Function

Synopsis

thread = love.thread.newThread( name, filename )

Arguments

string name
The name of the thread.
string filename
The name of the File to use as source.

Returns

Thread thread
A new Thread that has yet to be started.

Function

Synopsis

thread = love.thread.newThread( name, file )

Arguments

string name
The name of the thread.
File file
The file to use as source.

Returns

Thread thread
A new Thread that has yet to be started.

Function

Synopsis

thread = love.thread.newThread( name, data )

Arguments

string name
The name of the thread.
Data data
The data to use as source.

Returns

Thread thread
A new Thread that has yet to be started.

See Also

Other Languages