Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/esm/promise/index.js

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/promise/index.js";

Functions

Resolves a promise only after the given duration.

Creates a promise that can be resolved or rejected manually.

Runs multiple tasks concurrently and returns the result of the first task that completes. The rest of the tasks will be aborted.

Blocks the context for a given duration.

Try to resolve a promise with a timeout limit.

Blocks the current routine until the test returns a truthy value, which is not false, null or undefined. If the test throws an error, it will be treated as a falsy value and the check continues.