API Reference
@univerjs
@univerjs/core
classes
Disposablecollection

@univerjs/core v0.4.2Docs


Class: DisposableCollection

Implements

Constructors

new DisposableCollection()

new DisposableCollection(): DisposableCollection

Returns

DisposableCollection

Methods

add()

add(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

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


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