quickjs-emscripten • quickjs-emscripten-core • Readme | Exports
quickjs-emscripten / quickjs-emscripten-core / DisposableFail
AbstractDisposableResult
• F
new DisposableFail<
F
>(error
,onUnwrap
):DisposableFail
<F
>
• error: F
• onUnwrap: (status
) => void
AbstractDisposableResult.constructor
packages/quickjs-emscripten-core/src/lifetime.ts:451
readonly
error:F
packages/quickjs-emscripten-core/src/lifetime.ts:452
get
alive():boolean
boolean
packages/quickjs-emscripten-core/src/lifetime.ts:458
[dispose]():
void
Just calls the standard .dispose() method of this class.
void
AbstractDisposableResult.[dispose]
packages/quickjs-emscripten-core/src/lifetime.ts:47
dispose():
void
void
AbstractDisposableResult.dispose
packages/quickjs-emscripten-core/src/lifetime.ts:462
unwrap():
never
never
packages/quickjs-emscripten-core/src/lifetime.ts:468
unwrapOr<
T
>(fallback
):T
• T
• fallback: T
T
packages/quickjs-emscripten-core/src/lifetime.ts:473
static
fail<S
,F
>(error
,onUnwrap
):DisposableFail
<F
>
• S
• F
• error: F
• onUnwrap: (status
) => void
AbstractDisposableResult.fail
packages/quickjs-emscripten-core/src/lifetime.ts:409
static
is<S
,F
>(result
):result is DisposableResult<S, F>
• S
• F
• result: SuccessOrFail
<S
, F
>
result is DisposableResult<S, F>
AbstractDisposableResult.is
packages/quickjs-emscripten-core/src/lifetime.ts:416
static
success<S
,F
>(value
):DisposableSuccess
<S
>
• S
• F
• value: S
AbstractDisposableResult.success
packages/quickjs-emscripten-core/src/lifetime.ts:405
Generated using typedoc-plugin-markdown and TypeDoc