API Reference
@univerjs
@univerjs/core
classes
Rcdisposable

@univerjs/core v0.4.2Docs


Class: RCDisposable

Extends

Constructors

new RCDisposable()

new RCDisposable(_rootDisposable): RCDisposable

Parameters

ParameterType
_rootDisposableIDisposable

Returns

RCDisposable

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:129 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dec()

dec(): void

Returns

void

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:140 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


inc()

inc(): void

Returns

void

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:133 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.