import * as mod from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async.ts";This file contains the Async algebraic data type. Async is a lazy, asynchronous adt that is useful for encapsulating anything from file reads and network requests to timers and loops.
| ApplicableAsync | |
| bind | |
| bindTo | |
| FlatmappableAsync | |
| FlatmappableAsyncSeq | |
| MappableAsync | |
| tap | |
| WrappableAsync |
| apply | Apply a function wrapped in an Async to a value wrapped in an Async. |
| applySequential | Apply a function wrapped in an Async to a value wrapped in an Async, sequentially. |
| delay | Add a delay to an Async computation. |
| flatmap | Chain Async computations together. |
| fromSync | Convert a synchronous computation to an asynchronous one. |
| getCombinableAsync | Create a Combinable instance for Async given a Combinable for the inner type. |
| getInitializableAsync | Create an Initializable instance for Async given an Initializable for the inner type. |
| map | Apply a function to the result of an Async computation. |
| tryCatch | Wrap a function that can throw in a try/catch block, returning an Async. |
| wrap | Wrap a value in an Async computation. |