feat: add parallel

This commit is contained in:
2025-06-04 18:51:00 +09:00
parent 9612261f4b
commit 0e488a836a
4 changed files with 17 additions and 4 deletions

10
types/index.d.ts vendored
View File

@@ -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.