Skip to content

Latest commit

 

History

History
246 lines (131 loc) · 4.96 KB

File metadata and controls

246 lines (131 loc) · 4.96 KB

quickjs-emscriptenquickjs-emscripten-coreReadme | Exports


quickjs-emscripten / quickjs-emscripten-core / DisposableFail

Class: DisposableFail<F>

Contents

Extends

  • AbstractDisposableResult

Type parameters

F

Constructors

new DisposableFail(error, onUnwrap)

new DisposableFail<F>(error, onUnwrap): DisposableFail<F>

Parameters

error: F

onUnwrap: (status) => void

Returns

DisposableFail<F>

Overrides

AbstractDisposableResult.constructor

Source

packages/quickjs-emscripten-core/src/lifetime.ts:451

Properties

error

readonly error: F

Source

packages/quickjs-emscripten-core/src/lifetime.ts:452

Accessors

alive

get alive(): boolean

Returns

boolean

Source

packages/quickjs-emscripten-core/src/lifetime.ts:458

Methods

[dispose]()

[dispose](): void

Just calls the standard .dispose() method of this class.

Returns

void

Inherited from

AbstractDisposableResult.[dispose]

Source

packages/quickjs-emscripten-core/src/lifetime.ts:47


dispose()

dispose(): void

Returns

void

Overrides

AbstractDisposableResult.dispose

Source

packages/quickjs-emscripten-core/src/lifetime.ts:462


unwrap()

unwrap(): never

Returns

never

Source

packages/quickjs-emscripten-core/src/lifetime.ts:468


unwrapOr()

unwrapOr<T>(fallback): T

Type parameters

T

Parameters

fallback: T

Returns

T

Source

packages/quickjs-emscripten-core/src/lifetime.ts:473


fail()

static fail<S, F>(error, onUnwrap): DisposableFail<F>

Type parameters

S

F

Parameters

error: F

onUnwrap: (status) => void

Returns

DisposableFail<F>

Inherited from

AbstractDisposableResult.fail

Source

packages/quickjs-emscripten-core/src/lifetime.ts:409


is()

static is<S, F>(result): result is DisposableResult<S, F>

Type parameters

S

F

Parameters

result: SuccessOrFail<S, F>

Returns

result is DisposableResult<S, F>

Inherited from

AbstractDisposableResult.is

Source

packages/quickjs-emscripten-core/src/lifetime.ts:416


success()

static success<S, F>(value): DisposableSuccess<S>

Type parameters

S

F

Parameters

value: S

Returns

DisposableSuccess<S>

Inherited from

AbstractDisposableResult.success

Source

packages/quickjs-emscripten-core/src/lifetime.ts:405


Generated using typedoc-plugin-markdown and TypeDoc