quickjs-emscripten • quickjs-emscripten-core • Readme | Exports
quickjs-emscripten / quickjs-emscripten-core / DisposableSuccess
AbstractDisposableResult
• S
new DisposableSuccess<
S
>(value
):DisposableSuccess
<S
>
• value: S
AbstractDisposableResult.constructor
packages/quickjs-emscripten-core/src/lifetime.ts:427
error?:
undefined
packages/quickjs-emscripten-core/src/lifetime.ts:425
readonly
value:S
packages/quickjs-emscripten-core/src/lifetime.ts:427
get
alive():boolean
boolean
packages/quickjs-emscripten-core/src/lifetime.ts:431
[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:435
unwrap():
S
S
packages/quickjs-emscripten-core/src/lifetime.ts:441
unwrapOr<
T
>(_fallback
):S
|T
• T
• _fallback: T
S
| T
packages/quickjs-emscripten-core/src/lifetime.ts:445
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