Thread:start

Thread:start Available since LÖVE 0.7.0 This function is not supported in earlier versions. Starts the thread. Beginning with version 0.9.0, threads can be restarted after they have completed their execution. Function Synopsis Thread:start( ) Arguments None. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis Thread:start( arg1, arg2, ... ) Arguments Variant arg1 A string, number, boolean, LÖVE object, or simple table. Va

Thread:set

Thread:set Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been moved to the Channel API. Sets a value in the message box of the thread. The name of the message can be any string. The value of the message can be a boolean, string, number or a LÖVE userdata. Foreign userdata (Lua's files, LuaSocket, ...), functions or tables are not supported. Function Synopsis Thread:set(name, value) Arguments string name The name of the message. boolean, string, number or LÖVE userdata value

Thread:send

Thread:send Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 It has been renamed to Thread:set. Send a message (put it in the message box). Function Synopsis Thread:send(name, value) Arguments string name The name of the message. Variant value The contents of the message. Returns None. See Also Thread

Thread:receive

Thread:receive Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 It has been renamed to Thread:get. Receive a message from a thread. Returns nil when a message is not in the message box. Function Synopsis value = Thread:receive(name) Arguments string name The name of the message. Returns Variant value The contents of the message or nil when no message in message box. See Also Thread

Thread:peek

Thread:peek Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 It has been moved to the Channel api. Retrieves the value of a message, but leaves it in the thread's message box. The name of the message can be any string. The value of the message can be a boolean, string, number or a LÖVE userdata. It returns nil, if there's no message with the given name. Function Synopsis value = Thread:peek( name ) Arguments string name The name of the message. Returns boolean, number, string or LÖV

Thread:kill

Thread:kill Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 This method is not supported in earlier or later versions. Forcefully terminate the thread. This function terminates the thread wherever it is, which is capable of locking the game, or doing anything evil for that matter, its use is strongly discouraged. Function Synopsis Thread:kill( ) Arguments None. Returns None. See Also Thread

Thread:isRunning

Thread:isRunning Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns whether the thread is currently running. Threads which are not running can be (re)started with Thread:start. Function Synopsis running = Thread:isRunning( ) Arguments None. Returns boolean value True if the thread is running, false otherwise. See Also Thread Thread:start

Thread:getName

Thread:getName Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Get the name of a thread. Function Synopsis name = Thread:getName( ) Arguments None. Returns string name The name of the thread. See Also Thread

Thread:getKeys

Thread:getKeys Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 This method is not supported in earlier or later versions. Returns a table with the names of all messages in the message box. Function Synopsis msgNames = Thread:getKeys() Arguments None. Returns table msgNames A sequence with all the message names. See Also Thread

Thread:getError

Thread:getError Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the error string from the thread if it produced an error. Function Synopsis value = Thread:getError( ) Arguments None. Returns string value The error message. See Also Thread love.threaderror