Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

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.

§Variables

ApplicableAsync
bind
bindTo
FlatmappableAsync
FlatmappableAsyncSeq
MappableAsync
tap
WrappableAsync

§Functions

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.

§Interfaces

KindAsync

Specifies Async as a Higher Kinded Type, with covariant parameter A corresponding to the 0th index of any substitutions.

§Type Aliases

Async

The Async type represents a lazy, asynchronous computation that returns a value of type A.