Liking cljdoc? Tell your friends :D
ClojureScript only.

dots.vscode.disposable

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.
raw docstring

disposecljs

(dispose disposable)

Dispose this object.

Returns: any

Dispose this object.

**Returns:** `any`
sourceraw docstring

fromcljs

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close