Difference between revisions of "love.thread.newThread"

(Initial version)
 
Line 1: Line 1:
 +
{{newin|[[0.7.0]]|type=function}}
 
Creates a new Thread from a [[File]] or [[Data]] Object.
 
Creates a new Thread from a [[File]] or [[Data]] Object.
 
== Function ==
 
== Function ==

Revision as of 15:56, 22 September 2010

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, 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