local function im_running_free()
-- do something cool while listening to Iron Maiden
end
local thread = love.thread.newThread( 'yeah', im_running_free )
The first form could be implemented in terms of it...
The biggest con of running functions (except for it being hard ) is that every thread is completely separated from the other thread, combining them in the same sourcefile would be a bit confusing to some/most.
Regarding data, well, in theory it could be any form of data, but most won't give you a useful result, love.filesystem.FileData will, however.
Robin wrote:data is a FileData here, it was the original version of newThread. I think FileData is undocumented, but it has been successfully used in the past.
bartbes wrote:The biggest con of running functions (except for it being hard ) is that every thread is completely separated from the other thread, combining them in the same sourcefile would be a bit confusing to some/most.