Skip to content

Latest commit

 

History

History
255 lines (136 loc) · 5.22 KB

DisposableSuccess.md

File metadata and controls

255 lines (136 loc) · 5.22 KB

quickjs-emscriptenquickjs-emscripten-coreReadme | Exports


quickjs-emscripten / quickjs-emscripten-core / DisposableSuccess

Class: DisposableSuccess<S>

Contents

Extends

  • AbstractDisposableResult

Type parameters

S

Constructors

new DisposableSuccess(value)

new DisposableSuccess<S>(value): DisposableSuccess<S>

Parameters

value: S

Returns

DisposableSuccess<S>

Overrides

AbstractDisposableResult.constructor

Source

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

Properties

error?

error?: undefined

Source

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


value

readonly value: S

Source

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

Accessors

alive

get alive(): boolean

Returns

boolean

Source

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

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:435


unwrap()

unwrap(): S

Returns

S

Source

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


unwrapOr()

unwrapOr<T>(_fallback): S | T

Type parameters

T

Parameters

_fallback: T

Returns

S | T

Source

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


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