Skip to main content
Module

x/fun/promise.ts>resolve

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function resolve
import { resolve } from "https://deno.land/x/fun@v2.0.0-alpha.12/promise.ts";

An alias for Promise.resolve.

Examples

Example 1

import { resolve } from "./promise.ts";

const result = await resolve(1); // 1

Parameters

a: A | PromiseLike<A>

Returns

Promise<A>