import { then } from "https://deno.land/x/fun@v2.0.0/promise.ts";
An alias for Promise.then
Examples
Example 1
Example 1
import { wrap, then } from "./promise.ts";
import { pipe } from "./fn.ts";
const result = await pipe(
wrap(1),
then(n => n + 1),
); // 2