The Worker interface of the Web Workers API represents a background that can be easily created and can send messages back to its Creating a worker is as simple as calling the Worker() constructor specifying a script to be run in the worker thread.
The Worker interface of the Web Workers API represents a background that can be easily created and can send messages back to its Creating a worker is as simple as calling the Worker() constructor specifying a script to be run in the worker thread.
(onerror this)Property.
The AbstractWorker.onerror property of the web.workers.AbstractWorker
represents an EventHandler, that is a function to be called
the error event occurs and bubbles through the web.workers.Worker.
myWorker.onerror = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror
Property.
The AbstractWorker.onerror property of the `web.workers.AbstractWorker`
represents an `EventHandler`, that is a function to be called
the error event occurs and bubbles through the `web.workers.Worker`.
`myWorker.onerror = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror`(onmessage this)Property.
The onmessage property of the web.workers.Worker interface
an EventHandler, that is a function to be called when the message
occurs. These events are of type web.workers.MessageEvent and
be called when the worker's parent receives a message (i.e. from
DedicatedWorkerGlobalScope.postMessage method).
myWorker.onmessage = function(e) { ... }
See also: https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage
Property.
The onmessage property of the `web.workers.Worker` interface
an `EventHandler`, that is a function to be called when the message
occurs. These events are of type `web.workers.MessageEvent` and
be called when the worker's parent receives a message (i.e. from
`DedicatedWorkerGlobalScope.postMessage` method).
`myWorker.onmessage = function(e) { ... }`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage`(onmessageerror this)Property.
The onmessageerror event handler of the web.workers.Worker
is an web.EventListener, called whenever an web.workers.MessageEvent
type messageerror is fired on the Worker instance — that is,
it receives a message that cannot be deserialized.
Worker.onmessageerror = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror
Property.
The onmessageerror event handler of the `web.workers.Worker`
is an `web.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on the Worker instance — that is,
it receives a message that cannot be deserialized.
`Worker.onmessageerror = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror`(post-message this & args)Method.
The postMessage() method of the web.workers.Worker interface
a message to the worker's inner scope. This accepts a single
which is the data to send to the worker. The data may be any
or JavaScript object handled by the structured clone algorithm,
includes cyclical references.
worker.postMessage(message, [transfer]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage
Method. The postMessage() method of the `web.workers.Worker` interface a message to the worker's inner scope. This accepts a single which is the data to send to the worker. The data may be any or JavaScript object handled by the structured clone algorithm, includes cyclical references. `worker.postMessage(message, [transfer]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage`
(set-onerror! this val)Property.
The AbstractWorker.onerror property of the web.workers.AbstractWorker
represents an EventHandler, that is a function to be called
the error event occurs and bubbles through the web.workers.Worker.
myWorker.onerror = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror
Property.
The AbstractWorker.onerror property of the `web.workers.AbstractWorker`
represents an `EventHandler`, that is a function to be called
the error event occurs and bubbles through the `web.workers.Worker`.
`myWorker.onerror = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror`(set-onmessage! this val)Property.
The onmessage property of the web.workers.Worker interface
an EventHandler, that is a function to be called when the message
occurs. These events are of type web.workers.MessageEvent and
be called when the worker's parent receives a message (i.e. from
DedicatedWorkerGlobalScope.postMessage method).
myWorker.onmessage = function(e) { ... }
See also: https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage
Property.
The onmessage property of the `web.workers.Worker` interface
an `EventHandler`, that is a function to be called when the message
occurs. These events are of type `web.workers.MessageEvent` and
be called when the worker's parent receives a message (i.e. from
`DedicatedWorkerGlobalScope.postMessage` method).
`myWorker.onmessage = function(e) { ... }`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage`(set-onmessageerror! this val)Property.
The onmessageerror event handler of the web.workers.Worker
is an web.EventListener, called whenever an web.workers.MessageEvent
type messageerror is fired on the Worker instance — that is,
it receives a message that cannot be deserialized.
Worker.onmessageerror = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror
Property.
The onmessageerror event handler of the `web.workers.Worker`
is an `web.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on the Worker instance — that is,
it receives a message that cannot be deserialized.
`Worker.onmessageerror = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror`(terminate this)Method.
The terminate() method of the web.workers.Worker interface
terminates the web.workers.Worker. This does not offer the
an opportunity to finish its operations; it is simply stopped
once.
myWorker.terminate();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate
Method. The terminate() method of the `web.workers.Worker` interface terminates the `web.workers.Worker`. This does not offer the an opportunity to finish its operations; it is simply stopped once. `myWorker.terminate();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate`
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 |