Skip to main content

latest

Scheduling utilities for all runtimes.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
58%
Published
6 months ago (0.1.3)
f
createDeferredQueue

Create a deferred queue.

v
defer
No documentation available
v
enqueue
No documentation available
c
FrameLoop

A class to manage requestAnimationFrame loops.

v
frameloop
No documentation available
f
isDebug
No documentation available
f
isDevelopment
No documentation available
f
isProduction
No documentation available
E
Mode
No documentation available
v
mode
No documentation available
f
schedule

Schedule a series of tasks to be performed in a non-blocking way, yielding to the main thread if the deadline has been reached or if there is user input. The return of each function is passed as an argument to the next function, and the result of the last function is returned.

f
setMode
No documentation available
f
yieldToMain

Yield to the main thread.

f
createDeferredQueue

Create a deferred queue.

v
defer
No documentation available
v
enqueue
No documentation available
c
FrameLoop

A class to manage requestAnimationFrame loops.

v
frameloop
No documentation available
f
isDebug
No documentation available
f
isDevelopment
No documentation available
f
isProduction
No documentation available
E
Mode
No documentation available
v
mode
No documentation available
f
setMode
No documentation available
f
schedule

Schedule a series of tasks to be performed in a non-blocking way, yielding to the main thread if the deadline has been reached or if there is user input. The return of each function is passed as an argument to the next function, and the result of the last function is returned.

f
yieldToMain

Yield to the main thread.