Liking cljdoc? Tell your friends :D

web.IdleDeadline

See our complete example in the article Cooperative Scheduling Background Tasks API.

See our complete example in the article Cooperative Scheduling
Background Tasks API.
raw docstring

did-timeoutcljs

(did-timeout this)

Property.

The read-only didTimeout property on the web.IdleDeadline interface a Boolean value which indicates whether or not the idle callback being invoked because the timeout interval specified when web.Window.requestIdleCallback() called has expired.

var timedOut = IdleDeadline.didTimeout;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout

Property.

The read-only didTimeout property on the `web.IdleDeadline` interface
a Boolean value which indicates whether or not the idle callback
being invoked because the timeout interval specified when `web.Window.requestIdleCallback()`
called has expired.

`var timedOut = IdleDeadline.didTimeout;`

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

set-did-timeout!cljs

(set-did-timeout! this val)

Property.

The read-only didTimeout property on the web.IdleDeadline interface a Boolean value which indicates whether or not the idle callback being invoked because the timeout interval specified when web.Window.requestIdleCallback() called has expired.

var timedOut = IdleDeadline.didTimeout;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout

Property.

The read-only didTimeout property on the `web.IdleDeadline` interface
a Boolean value which indicates whether or not the idle callback
being invoked because the timeout interval specified when `web.Window.requestIdleCallback()`
called has expired.

`var timedOut = IdleDeadline.didTimeout;`

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

time-remainingcljs

(time-remaining this)

Method.

The timeRemaining() method on the web.IdleDeadline interface the estimated number of milliseconds remaining in the current period. The callback can call this method at any time to determine much time it can continue to work before it must return. For if the callback finishes a task and has another one to begin, can call timeRemaining() to see if there's enough time to complete next task. If there isn't, the callback can just return immediately, look for other work to do with the remaining time.

timeRemaining = IdleDeadline.timeRemaining();

See also: https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/timeRemaining

Method.

The timeRemaining() method on the `web.IdleDeadline` interface
the estimated number of milliseconds remaining in the current
period. The callback can call this method at any time to determine
much time it can continue to work before it must return. For
if the callback finishes a task and has another one to begin,
can call timeRemaining() to see if there's enough time to complete
next task. If there isn't, the callback can just return immediately,
look for other work to do with the remaining time.

`timeRemaining = IdleDeadline.timeRemaining();`

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

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

× close