> For AI agents: the complete documentation index is available at https://massaman.dev/llms.txt, the full documentation bundle is available at https://massaman.dev/llms-full.txt.

# Promise


[allKeyedResolves an object of promises concurrently, returning an object with the same keys and resolved values.](/reference/promise/allKeyed)[delayDelays code execution for a specified amount of time.](/reference/promise/delay)[limitAsyncCreates a new function that limits the maximum number of concurrent executions of an async function.](/reference/promise/limitAsync)[MutexEnsures that multiple asynchronous tasks do not execute simultaneously.](/reference/promise/Mutex)[SemaphoreLimits the number of asynchronous tasks that can execute simultaneously.](/reference/promise/Semaphore)[timeoutReturns a Promise that throws a TimeoutError after the specified time.](/reference/promise/timeout)[withTimeoutSets a time limit on an asynchronous function, throwing a TimeoutError if it doesn't complete within the specified time.](/reference/promise/withTimeout)