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