@univerjscoreclassesDisposablecollection

@univerjs/core v0.5.4


Class: DisposableCollection

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:68

Implements

Constructors

new DisposableCollection()

new DisposableCollection(): DisposableCollection

Returns

DisposableCollection

Methods

add()

add(disposable): {
  dispose: (notDisposeSelf?) => void;
}

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

Parameters

ParameterType
disposableDisposableLike

Returns

{
  dispose: (notDisposeSelf?) => void;
}
NameTypeDefined in
dispose(notDisposeSelf?) => voidpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:71

dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:86

Returns

void

Implementation of

IDisposable.dispose