Why Nostr? What is Njump?
2024-02-09 09:16:15
in reply to

wraptile on Nostr: npub1n8jea…50xek callbacks don't wait for result. It tells the async loop to do the ...

callbacks don't wait for result. It tells the async loop to do the task in the background and callback/errorback function when it's complete. So for example if your function needs an analytics call `await doAnalytics()` would block and `doAnalytics().then(reportResultToSentry)` would schedule the task and do it in the background. It can be very practical but notoriously difficult to debug to the point where we invented async/await because it sucked so bad :D
Author Public Key
npub1x389dz8c5x4gz35757520dlr9dm5rpzzqtm5fc8pveqtzp6wc42q3ashsz