ROUTMIO_DEV

TOOLS

DDL GeneratorDDL → ERDDummy Data GeneratorRegex TesterJSON FormatterBase64 ConverterTimestamp ConverterCron BuilderMeeting Minutes

DATABASE

LANGUAGE

TypeScript Promise/async

8 functions

Promise.allPromise.all(promises): Promise<T[]>

Returns a promise that fulfills when all input promises fulfill.

Promise.allSettledPromise.allSettled(promises): Promise<SettledResult[]>

Returns a promise that fulfills after all input promises have settled.

Promise.racePromise.race(promises): Promise<T>

Returns a promise that settles with the first promise to settle.

Promise.anyPromise.any(promises): Promise<T>

Returns a promise that fulfills when any input promise fulfills.

Promise.resolvePromise.resolve(value): Promise<T>

Returns a Promise object that is resolved with a given value.

Promise.rejectPromise.reject(reason): Promise<never>

Returns a Promise object that is rejected with a given reason.

async/awaitasync function fn() { const v = await promise; }

Syntax for writing asynchronous code in a synchronous-looking style.

try/catch asynctry { await fn(); } catch (e) { }

Handles errors in async/await code using try/catch blocks.

Terms of ServicePrivacy PolicyContactIcons by Flaticon