This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
acesoyster's profile picture

Quick Parallel help

Started by acesoyster, 23 June 2013 - 05:39 AM
acesoyster #1
Posted 23 June 2013 - 07:39 AM
How can I pass arguments to functions being run within the parallel API? I know how it's done with the pcall function, but as far as anything I've looked at has told me parallel doesn't have an argument for arguments for the functions.

Thanks
Lyqyd #2
Posted 23 June 2013 - 08:54 PM
Split into new topic.

Use an anonymous function that uses a tail call to start the function you want to run with its arguments:

function() return yourActualFunction(with, its, args) end