Returns the total number of queued futures across all items.
Gets the cached resolved value if available.
Gets the cached error if one occurred.
Executes the async function once and caches the result. Subsequent calls return the cached promise without re-executing.
The async function to execute
A promise that resolves to the function's result
Resets the cached state, allowing the function to be executed again.
Optional
Optional function to execute immediately after reset
The result if fn provided, undefined otherwise
Returns the total number of queued futures across all items.