Liking cljdoc? Tell your friends :D
ClojureScript only.

dots.vscode.event-emitter

An event emitter can be used to create and manage an {@link Event } for others to subscribe to. One emitter always owns one event.

Use this class if you want to provide event from within your extension, for instance inside a {@link TextDocumentContentProvider } or when providing API to other extensions.

An event emitter can be used to create and manage an {@link Event } for others
to subscribe to. One emitter always owns one event.

Use this class if you want to provide event from within your extension, for instance
inside a {@link TextDocumentContentProvider } or when providing
API to other extensions.
raw docstring

disposecljs

(dispose event-emitter)

Dispose this object and free resources.

Returns: void

Dispose this object and free resources.

**Returns:** `void`
sourceraw docstring

eventcljs

(event event-emitter)
(event event-emitter listener)
(event event-emitter listener this-args)
(event event-emitter listener this-args disposables)

The event listeners can subscribe to.

Parameters:

  • listener: (e: T) => any - The listener function will be called when the event happens.
  • this-args: any - The this-argument which will be used when calling the event listener.
  • disposables: Disposable[] | undefined - An array to which a {@link Disposable } will be added.

Returns: Disposable - A disposable which unsubscribes the event listener.

The event listeners can subscribe to.

**Parameters:**
- `listener`: `(e: T) => any` - The listener function will be called when the event happens.
- `this-args`: `any` - The `this`-argument which will be used when calling the event listener.
- `disposables`: `Disposable[] | undefined` - An array to which a {@link Disposable } will be added.

**Returns:** `Disposable` - A disposable which unsubscribes the event listener.
sourceraw docstring

firecljs

(fire event-emitter data)

Notify all subscribers of the {@link EventEmitter.event event}. Failure of one or more listener will not fail this function call.

Parameters:

  • data: T - The event object.

Returns: void

Notify all subscribers of the {@link EventEmitter.event event}. Failure
of one or more listener will not fail this function call.

**Parameters:**
- `data`: `T` - The event object.

**Returns:** `void`
sourceraw docstring

set-event!cljs

(set-event! event-emitter value)

The event listeners can subscribe to.

The event listeners can subscribe to.
sourceraw docstring

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

× close