Injected rather than reached for, like every other IO in this module, so a
unit test can expire a deadline without a wall clock and without fake global
timers. globalThis satisfies it structurally and is the default.
Milliseconds appear here and nowhere else. Every fourJS API is in
seconds (§7a) — AssetManagerOptions.timeoutSeconds included — but
setTimeout is a platform primitive whose unit is fixed, so the conversion
happens at this boundary and the boundary says so in the parameter name.
The timer seam behind AssetManagerOptions.timeoutSeconds.
Injected rather than reached for, like every other IO in this module, so a unit test can expire a deadline without a wall clock and without fake global timers.
globalThissatisfies it structurally and is the default.Milliseconds appear here and nowhere else. Every fourJS API is in seconds (§7a) — AssetManagerOptions.timeoutSeconds included — but
setTimeoutis a platform primitive whose unit is fixed, so the conversion happens at this boundary and the boundary says so in the parameter name.