Difference between revisions of "Parallel (API)"

From ComputerCraft Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Parallel is an API which allows you to multitask.
 
Parallel is an API which allows you to multitask.
Its functions are:
+
{| border="1" cellpadding="2" cellspacing="0"
* parallel.waitForAny( function1, function2, so on) which will wait for any to complete.
+
!style="background:#EEE" width="200px"|Method name
* parallel.waitForAll( function1, function2, so on) which will wait for all of them to complete.
+
!style="background:#EEE" width="*"|Description
 +
|-
 +
|parallel.waitForAny( function1, function2, so on)
 +
|Waits for any function to complete.
 +
|-
 +
|parallel.waitForAll( function1, function2, so on)
 +
|Waits for all of the functions to complete.
 +
|}
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 05:38, 31 January 2012

Parallel is an API which allows you to multitask.

Method name Description
parallel.waitForAny( function1, function2, so on) Waits for any function to complete.
parallel.waitForAll( function1, function2, so on) Waits for all of the functions to complete.