queue-run
queue-run copied to clipboard
Currrent context
Useful for managing context if you have middleware or other composition
-
context
is just an object with key/value pairs -
context.user
is the current user (readonly) -
context.timeout
is the timeout in seconds -
context.remaining
is the remaining time in ms -
context.signal
is the abort signal - When creating a context with timeout, set
remaining
andsignal
Fashion this after sessionStorage
?