Liking cljdoc? Tell your friends :D

web.WorkerGlobalScope

The WorkerGlobalScope interface of the Web Workers API is an representing the scope of any worker. Workers have no browsing this scope contains the information usually conveyed by web.Window — in this case event handlers, the console or the associated object. Each WorkerGlobalScope has its own event loop.

The WorkerGlobalScope interface of the Web Workers API is an
representing the scope of any worker. Workers have no browsing
this scope contains the information usually conveyed by `web.Window`
— in this case event handlers, the console or the associated
object. Each WorkerGlobalScope has its own event loop.
raw docstring

atobcljs

(atob this encoded-data)

Method.

The WindowOrWorkerGlobalScope.atob() function decodes a string data which has been encoded using base-64 encoding. You can use web.btoa() method to encode and transmit data which may otherwise communication problems, then transmit it and use the atob() method decode the data again. For example, you can encode, transmit, decode control characters such as ASCII values 0 through 31.

var decodedData = scope.atob(encodedData);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob

Method.

The WindowOrWorkerGlobalScope.atob() function decodes a string
data which has been encoded using base-64 encoding. You can use
`web.btoa()` method to encode and transmit data which may otherwise
communication problems, then transmit it and use the atob() method
decode the data again. For example, you can encode, transmit,
decode control characters such as ASCII values 0 through 31.

`var decodedData = scope.atob(encodedData);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob`
sourceraw docstring

btoacljs

(btoa this string-to-encode)

Method.

The WindowOrWorkerGlobalScope.btoa() method creates a base-64 ASCII string from a binary string (i.e., a web.String object which each character in the string is treated as a byte of binary

var encodedData = scope.btoa(stringToEncode);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa

Method.

The WindowOrWorkerGlobalScope.btoa() method creates a base-64
ASCII string from a binary string (i.e., a `web.String` object
which each character in the string is treated as a byte of binary

`var encodedData = scope.btoa(stringToEncode);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa`
sourceraw docstring

cachescljs

(caches this)

Property.

The caches read-only property of the web.WindowOrWorkerGlobalScope returns the web.CacheStorage object associated with the current This object enables functionality such as storing assets for use, and generating custom responses to requests.

var myCacheStorage = self.caches; // or just caches

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/caches

Property.

The caches read-only property of the `web.WindowOrWorkerGlobalScope`
returns the `web.CacheStorage` object associated with the current
This object enables functionality such as storing assets for
use, and generating custom responses to requests.

`var myCacheStorage = self.caches; // or just caches`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/caches`
sourceraw docstring

clear-intervalcljs

(clear-interval this interval-id)

Method.

The clearInterval() method of the web.WindowOrWorkerGlobalScope cancels a timed, repeating action which was previously established a call to web.setInterval().

scope.clearInterval(intervalID)

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval

Method.

The clearInterval() method of the `web.WindowOrWorkerGlobalScope`
cancels a timed, repeating action which was previously established
a call to `web.setInterval()`.

`scope.clearInterval(intervalID)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval`
sourceraw docstring

clear-timeoutcljs

(clear-timeout this timeout-id)

Method.

The clearTimeout() method of the web.WindowOrWorkerGlobalScope cancels a timeout previously established by calling web.setTimeout().

scope.clearTimeout(timeoutID)

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout

Method.

The clearTimeout() method of the `web.WindowOrWorkerGlobalScope`
cancels a timeout previously established by calling `web.setTimeout()`.

`scope.clearTimeout(timeoutID)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout`
sourceraw docstring

closecljs

(close this)

Method.

The close() method of the web.WorkerGlobalScope interface discards tasks queued in the WorkerGlobalScope's event loop, effectively this particular scope.

self.close();

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/close

Method.

The close() method of the `web.WorkerGlobalScope` interface discards
tasks queued in the WorkerGlobalScope's event loop, effectively
this particular scope.

`self.close();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/close`
sourceraw docstring

consolecljs

(console this)

Property.

The console read-only property of the web.WorkerGlobalScope returns a web.Console object providing access to the browser for the worker.

var consoleObj = self.console;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/console

Property.

The console read-only property of the `web.WorkerGlobalScope`
returns a `web.Console` object providing access to the browser
for the worker.

`var consoleObj = self.console;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/console`
sourceraw docstring

create-image-bitmapcljs

(create-image-bitmap this & args)

Method.

The createImageBitmap() method creates a bitmap from a given optionally cropped to contain only a portion of that source. method exists on the global scope in both windows and workers. accepts a variety of different image sources, and returns a web.Promise resolves to an web.ImageBitmap.

createImageBitmap(image[, options]).then(function(response) { ... }); createImageBitmap(image, sx, sy, sw, sh[, options]).then(function(response) { ... });

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap

Method.

The createImageBitmap() method creates a bitmap from a given
optionally cropped to contain only a portion of that source.
method exists on the global scope in both windows and workers.
accepts a variety of different image sources, and returns a `web.Promise`
resolves to an `web.ImageBitmap`.

`createImageBitmap(image[, options]).then(function(response) { ... });
createImageBitmap(image, sx, sy, sw, sh[, options]).then(function(response) { ... });`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap`
sourceraw docstring

dumpcljs

(dump this & args)

Method.

The dump() method of the web.WorkerGlobalScope interface allows to write a message to stdout — i.e. in your terminal, in Firefox This is the same as Firefox's web.window.dump, but for workers.

dump('My message\\n');

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/dump

Method.

The dump() method of the `web.WorkerGlobalScope` interface allows
to write a message to stdout — i.e. in your terminal, in Firefox
This is the same as Firefox's `web.window.dump`, but for workers.

`dump('My message\\n');`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/dump`
sourceraw docstring

fetchcljs

(fetch this resource init)

Method.

The fetch() method of the web.WindowOrWorkerGlobalScope mixin the process of fetching a resource from the network, returning promise which is fulfilled once the response is available.

fetchResponsePromise = fetch(resource, init);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch

Method.

The fetch() method of the `web.WindowOrWorkerGlobalScope` mixin
the process of fetching a resource from the network, returning
promise which is fulfilled once the response is available.

`fetchResponsePromise = fetch(resource, init);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch`
sourceraw docstring

import-scriptscljs

(import-scripts this & args)

Method.

The importScripts() method of the web.WorkerGlobalScope interface imports one or more scripts into the worker's scope.

self.importScripts('foo.js'); self.importScripts('foo.js', 'bar.js', ...);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts

Method.

The importScripts() method of the `web.WorkerGlobalScope` interface
imports one or more scripts into the worker's scope.

`self.importScripts('foo.js');
self.importScripts('foo.js', 'bar.js', ...);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts`
sourceraw docstring

indexed-dbcljs

(indexed-db this)

Property.

The indexedDB read-only property of the web.WindowOrWorkerGlobalScope provides a mechanism for applications to asynchronously access capabilities of indexed databases.

var IDBFactory = self.indexedDB;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/indexedDB

Property.

The indexedDB read-only property of the `web.WindowOrWorkerGlobalScope`
provides a mechanism for applications to asynchronously access
capabilities of indexed databases.

`var IDBFactory = self.indexedDB;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/indexedDB`
sourceraw docstring

is-secure-contextcljs

(is-secure-context this)

Property.

The isSecureContext read-only property of the web.WindowOrWorkerGlobalScope returns a boolean indicating whether the current context is secure or not (false).

var isItSecure = self.isSecureContext; // or just isSecureContext

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/isSecureContext

Property.

The isSecureContext read-only property of the `web.WindowOrWorkerGlobalScope`
returns a boolean indicating whether the current context is secure
or not (false).

`var isItSecure = self.isSecureContext; // or just isSecureContext`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/isSecureContext`
sourceraw docstring

locationcljs

(location this)

Property.

The location read-only property of the web.WorkerGlobalScope returns the web.WorkerLocation associated with the worker. is a specific location object, mostly a subset of the web.Location browsing scopes, but adapted to workers.

var locationObj = self.location;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location

Property.

The location read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerLocation` associated with the worker.
is a specific location object, mostly a subset of the `web.Location`
browsing scopes, but adapted to workers.

`var locationObj = self.location;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location`
sourceraw docstring

(navigator this)

Property.

The navigator read-only property of the web.WorkerGlobalScope returns the web.WorkerNavigator associated with the worker. is a specific navigator object, mostly a subset of the web.Navigator browsing scopes, but adapted to workers.

var navigatorObj = self.navigator;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator

Property.

The navigator read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerNavigator` associated with the worker.
is a specific navigator object, mostly a subset of the `web.Navigator`
browsing scopes, but adapted to workers.

`var navigatorObj = self.navigator;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator`
sourceraw docstring

onclosecljs

(onclose this)

Property.

The onclose property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the close event occurs bubbles through the web.Worker.

self.onclose = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onclose

Property.

The onclose property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the close event occurs
bubbles through the `web.Worker`.

`self.onclose = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onclose`
sourceraw docstring

onerrorcljs

(onerror this)

Property.

The onerror property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the error event occurs bubbles through the web.Worker.

self.onerror = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror

Property.

The onerror property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the error event occurs
bubbles through the `web.Worker`.

`self.onerror = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror`
sourceraw docstring

onlanguagechangecljs

(onlanguagechange this)

Property.

The onlanguagechange property of the web.WorkerGlobalScope represents an web.EventHandler to be called when the languagechange occurs and bubbles through the web.Worker.

self.onlanguagechange = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onlanguagechange

Property.

The onlanguagechange property of the `web.WorkerGlobalScope`
represents an `web.EventHandler` to be called when the languagechange
occurs and bubbles through the `web.Worker`.

`self.onlanguagechange = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onlanguagechange`
sourceraw docstring

onofflinecljs

(onoffline this)

Property.

The onoffline property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the offline event occurs bubbles through the web.Worker.

self.onoffline = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline

Property.

The onoffline property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the offline event occurs
bubbles through the `web.Worker`.

`self.onoffline = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline`
sourceraw docstring

ononlinecljs

(ononline this)

Property.

The ononline property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the online event occurs bubbles through the web.Worker.

self.ononline = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline

Property.

The ononline property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the online event occurs
bubbles through the `web.Worker`.

`self.ononline = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline`
sourceraw docstring

origincljs

(origin this)

Property.

The origin read-only property of the web.WindowOrWorkerGlobalScope returns the origin of the global scope, serialized as a string.

var myOrigin = self.origin; // or just origin

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/origin

Property.

The origin read-only property of the `web.WindowOrWorkerGlobalScope`
returns the origin of the global scope, serialized as a string.

`var myOrigin = self.origin; // or just origin`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/origin`
sourceraw docstring

performancecljs

(performance this)

Property.

The performance read-only property of the web.WorkerGlobalScope returns a performance.Performance object to be used on the

var perfObj = self.performance;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance

Property.

The performance read-only property of the `web.WorkerGlobalScope`
returns a `performance.Performance` object to be used on the

`var perfObj = self.performance;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance`
sourceraw docstring

queue-microtaskcljs

(queue-microtask this function)

Method.

The queueMicrotask() method of the web.WindowOrWorkerGlobalScope queues a microtask.

scope.queueMicrotask(function);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask

Method.

The queueMicrotask() method of the `web.WindowOrWorkerGlobalScope`
queues a microtask.

`scope.queueMicrotask(function);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask`
sourceraw docstring

selfcljs

(self this)

Property.

The self read-only property of the web.WorkerGlobalScope interface a reference to the WorkerGlobalScope itself. Most of the time is a specific scope like web.DedicatedWorkerGlobalScope, web.SharedWorkerGlobalScope, web.ServiceWorkerGlobalScope.

var selfRef = self;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self

Property.

The self read-only property of the `web.WorkerGlobalScope` interface
a reference to the WorkerGlobalScope itself. Most of the time
is a specific scope like `web.DedicatedWorkerGlobalScope`, `web.SharedWorkerGlobalScope`,
`web.ServiceWorkerGlobalScope`.

`var selfRef = self;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self`
sourceraw docstring

set-intervalcljs

(set-interval this & args)

Method.

The setInterval() method, offered on the web.Window and web.Worker repeatedly calls a function or executes a code snippet, with fixed time delay between each call.

var intervalID = scope.setInterval(func, delay[, param1, param2, ...]); var intervalID = scope.setInterval(code, delay);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval

Method.

The setInterval() method, offered on the `web.Window` and `web.Worker`
repeatedly calls a function or executes a code snippet, with
fixed time delay between each call.

`var intervalID = scope.setInterval(func, delay[, param1, param2, ...]);
var intervalID = scope.setInterval(code, delay);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval`
sourceraw docstring

set-is-secure-context!cljs

(set-is-secure-context! this val)

Property.

The isSecureContext read-only property of the web.WindowOrWorkerGlobalScope returns a boolean indicating whether the current context is secure or not (false).

var isItSecure = self.isSecureContext; // or just isSecureContext

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/isSecureContext

Property.

The isSecureContext read-only property of the `web.WindowOrWorkerGlobalScope`
returns a boolean indicating whether the current context is secure
or not (false).

`var isItSecure = self.isSecureContext; // or just isSecureContext`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/isSecureContext`
sourceraw docstring

set-location!cljs

(set-location! this val)

Property.

The location read-only property of the web.WorkerGlobalScope returns the web.WorkerLocation associated with the worker. is a specific location object, mostly a subset of the web.Location browsing scopes, but adapted to workers.

var locationObj = self.location;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location

Property.

The location read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerLocation` associated with the worker.
is a specific location object, mostly a subset of the `web.Location`
browsing scopes, but adapted to workers.

`var locationObj = self.location;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location`
sourceraw docstring

set-navigator!cljs

(set-navigator! this val)

Property.

The navigator read-only property of the web.WorkerGlobalScope returns the web.WorkerNavigator associated with the worker. is a specific navigator object, mostly a subset of the web.Navigator browsing scopes, but adapted to workers.

var navigatorObj = self.navigator;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator

Property.

The navigator read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerNavigator` associated with the worker.
is a specific navigator object, mostly a subset of the `web.Navigator`
browsing scopes, but adapted to workers.

`var navigatorObj = self.navigator;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator`
sourceraw docstring

set-onclose!cljs

(set-onclose! this val)

Property.

The onclose property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the close event occurs bubbles through the web.Worker.

self.onclose = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onclose

Property.

The onclose property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the close event occurs
bubbles through the `web.Worker`.

`self.onclose = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onclose`
sourceraw docstring

set-onerror!cljs

(set-onerror! this val)

Property.

The onerror property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the error event occurs bubbles through the web.Worker.

self.onerror = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror

Property.

The onerror property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the error event occurs
bubbles through the `web.Worker`.

`self.onerror = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror`
sourceraw docstring

set-onlanguagechange!cljs

(set-onlanguagechange! this val)

Property.

The onlanguagechange property of the web.WorkerGlobalScope represents an web.EventHandler to be called when the languagechange occurs and bubbles through the web.Worker.

self.onlanguagechange = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onlanguagechange

Property.

The onlanguagechange property of the `web.WorkerGlobalScope`
represents an `web.EventHandler` to be called when the languagechange
occurs and bubbles through the `web.Worker`.

`self.onlanguagechange = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onlanguagechange`
sourceraw docstring

set-onoffline!cljs

(set-onoffline! this val)

Property.

The onoffline property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the offline event occurs bubbles through the web.Worker.

self.onoffline = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline

Property.

The onoffline property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the offline event occurs
bubbles through the `web.Worker`.

`self.onoffline = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline`
sourceraw docstring

set-ononline!cljs

(set-ononline! this val)

Property.

The ononline property of the web.WorkerGlobalScope interface an web.EventHandler to be called when the online event occurs bubbles through the web.Worker.

self.ononline = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline

Property.

The ononline property of the `web.WorkerGlobalScope` interface
an `web.EventHandler` to be called when the online event occurs
bubbles through the `web.Worker`.

`self.ononline = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline`
sourceraw docstring

set-origin!cljs

(set-origin! this val)

Property.

The origin read-only property of the web.WindowOrWorkerGlobalScope returns the origin of the global scope, serialized as a string.

var myOrigin = self.origin; // or just origin

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/origin

Property.

The origin read-only property of the `web.WindowOrWorkerGlobalScope`
returns the origin of the global scope, serialized as a string.

`var myOrigin = self.origin; // or just origin`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/origin`
sourceraw docstring

set-self!cljs

(set-self! this val)

Property.

The self read-only property of the web.WorkerGlobalScope interface a reference to the WorkerGlobalScope itself. Most of the time is a specific scope like web.DedicatedWorkerGlobalScope, web.SharedWorkerGlobalScope, web.ServiceWorkerGlobalScope.

var selfRef = self;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self

Property.

The self read-only property of the `web.WorkerGlobalScope` interface
a reference to the WorkerGlobalScope itself. Most of the time
is a specific scope like `web.DedicatedWorkerGlobalScope`, `web.SharedWorkerGlobalScope`,
`web.ServiceWorkerGlobalScope`.

`var selfRef = self;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self`
sourceraw docstring

set-timeoutcljs

(set-timeout this & args)

Method.

The setTimeout() method of the web.WindowOrWorkerGlobalScope (and successor to Window.setTimeout()) sets a timer which executes function or specified piece of code once the timer expires.

var timeoutID = scope.setTimeout(function[, delay, arg1, arg2, ...]); var timeoutID = scope.setTimeout(function[, delay]); var timeoutID = scope.setTimeout(code[, delay]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout

Method.

The setTimeout() method of the `web.WindowOrWorkerGlobalScope`
(and successor to Window.setTimeout()) sets a timer which executes
function or specified piece of code once the timer expires.

`var timeoutID = scope.setTimeout(function[, delay, arg1, arg2, ...]);
var timeoutID = scope.setTimeout(function[, delay]);
var timeoutID = scope.setTimeout(code[, delay]);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout`
sourceraw docstring

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

× close