@univerjscoreclassesDisposablecollection

@univerjs/core v0.5.0-beta.1Docs


Class: DisposableCollection

Implements

Constructors

new DisposableCollection()

new DisposableCollection(): DisposableCollection

Returns

DisposableCollection

Methods

add()

add(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:71


dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:83