dispose Function
Convenience function for disposing of a disposable object that may be undefined. This is primarily used to simplify implementations of IDisposable.dispose. As a simple example:
dispose(disposable?: IDisposable): undefined
Parameter | Type | Description |
---|---|---|
disposable | IDisposable | The object to be disposed of. |
Returns - undefined
undefined
Defined in
- core/bentley/src/Disposable.ts Line 58
Last Updated: 12 June, 2024