Represents a type which can release resources, such as event listening or a timer.
Represents a type which can release resources, such as event listening or a timer.
(dispose disposable)Dispose this object.
Returns: any
Dispose this object. **Returns:** `any`
(from & disposable-likes)Combine many disposable-likes into one. You can use this method when having objects with
a dispose function which aren't instances of Disposable.
Parameters:
disposable-likes: { dispose: () => any; }[] - Objects that have at least a dispose-function member. Note that asynchronous
dispose-functions aren't awaited.Returns: Disposable - Returns a new disposable which, upon dispose, will
dispose all provided disposables.
Combine many disposable-likes into one. You can use this method when having objects with
a dispose function which aren't instances of `Disposable`.
**Parameters:**
- `disposable-likes`: `{ dispose: () => any; }[]` - Objects that have at least a `dispose`-function member. Note that asynchronous
dispose-functions aren't awaited.
**Returns:** `Disposable` - Returns a new disposable which, upon dispose, will
dispose all provided disposables.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |