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