mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
feat: add parallel
This commit is contained in:
10
types/index.d.ts
vendored
10
types/index.d.ts
vendored
@@ -5,7 +5,7 @@
|
||||
* Based on documentation from https://tweaked.cc/
|
||||
*/
|
||||
|
||||
export {};
|
||||
export { };
|
||||
|
||||
/** @noSelf **/
|
||||
declare global {
|
||||
@@ -64,6 +64,14 @@ declare global {
|
||||
*/
|
||||
export const _CC_DEFAULT_SETTINGS: string;
|
||||
|
||||
/**
|
||||
* A simple way to run several functions at once.
|
||||
*/
|
||||
namespace parallel {
|
||||
function waitForAny(...functions: ((...args: any) => any)[]): void;
|
||||
function waitForAll(...functions: ((...args: any) => any)[]): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Colors API
|
||||
* Constants and functions for colour values, suitable for working with term and redstone.
|
||||
|
||||
Reference in New Issue
Block a user