Closed iflan closed 2 years ago
This change adds spawn which takes a no-argument, promise-returning function, calls it, and returns void. This makes it easy to call async blocks from useEffect and other places that don't take async functions, but also makes such calls explicit.
spawn
void
useEffect
This change adds
spawn
which takes a no-argument, promise-returning function, calls it, and returnsvoid
. This makes it easy to call async blocks fromuseEffect
and other places that don't take async functions, but also makes such calls explicit.