Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/external/thenable-generator/index.ts>Thenable

A JavaScript extension package for building strong and modern applications.
Latest
class Thenable
implements PromiseLike<T>, Catchable<T>
import { Thenable } from "https://deno.land/x/ayonli_jsext@v0.9.72/external/thenable-generator/index.ts";

Constructors

new
Thenable(_source: any)

Type Parameters

optional
T = any

Properties

protected
[result]: any
protected
[source]: any
protected
[status]: "suspended" | "closed" | "erred"

Methods

catch<R = never>(onrejected?: (reason: any) => R | PromiseLike<R>): Promise<T | R>
then<R1 = T, R2 = never>(onfulfilled?: ((value: T) => R1 | PromiseLike<R1>) | undefined | null, onrejected?: ((reason: any) => R2 | PromiseLike<R2>) | undefined | null): PromiseLike<R1 | R2>