Module promise

Augmentations for promises.

Remarks

Importing this module

This module's augmentations can be applied by using the following import:

import "@neotype/extensions/promise.js";

Combining promises as a semigroup

Promises have the following behavior as a semigroup:

  • A Promise<T> implements Semigroup when T implements Semigroup.
  • When combined, promises are awaited concurrently and their results are combined and fulfilled in a new promise.

Index

Interfaces

Generated using TypeDoc