import { promise } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { reject } = promise;
An alias for Promise.reject.
Examples
Example 1
Example 1
import { reject } from "./promise.ts";
const result = await reject(1).catch(x => x); // 1