Skip to content
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

Document how to run logic after returning a response #12

Closed
mrkurt opened this issue Feb 12, 2018 · 2 comments
Closed

Document how to run logic after returning a response #12

mrkurt opened this issue Feb 12, 2018 · 2 comments

Comments

@mrkurt
Copy link
Member

mrkurt commented Feb 12, 2018

Like when caching:

let resp = fetch("...")
inSweetNonBlockingFashion(function(){ cache.put(req, resp) });
return resp
@jeromegn
Copy link
Member

Do we need to document this or is it fine since the recent "runtime" changes? (more intuitive)

@mrkurt
Copy link
Member Author

mrkurt commented Jul 11, 2018

I'm not clear on if a promise without await works well for this, or people would be better off with setTimeout. They both seem to work now, though, so probably less docs needed.

@mrkurt mrkurt closed this as completed Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants