-
-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch requests #216
Comments
An abort signal to tell the callee that the item currently being fetched has been replaced or removed, and so is no longer needed, you mean? Yes, that would be nice, and fairly easy to do. Letting the fetch method assign the set() parameters somehow is a bit trickier. I punted on it for now, but it's challenging because promises can only resolve to a single value. Maybe it could be called with |
Ok, here's where I'm landing: Currently, the background fetch promises are exposed to Call If the |
Love the addition of fetch! Some feedback.
AbortSignal
Would be nice if it supported
AbortSignal
.A little unsure about he exact semantics. But e.g. during "dispose" the signal sent to the fetch method should IMO be signalled.
So there are two things:
TTL
Would be nice if the
fetchMethod
could somehow signal thettl
for the retrieved value (e.g. for a dns cache).The text was updated successfully, but these errors were encountered: