@univerjs/core v0.4.2 • Docs
Class: Disposable
Extended by
UnitModel
CommandService
ContextService
ErrorService
UniverInstanceService
LifecycleService
LocaleService
DesktopLogService
PermissionService
Plugin
ResourceManagerService
ThemeService
LocalUndoRedoService
SheetViewModel
RxDisposable
RCDisposable
Implements
Constructors
new Disposable()
new Disposable(): Disposable
Returns
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
_disposed | protected | boolean | false | submodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)