Isolate.run for Quick Offloading
Run a function off the main isolate.
The Easy Door In
Spawning isolates by hand is fiddly. Isolate.run is the simplest way to push one heavy job off the main isolate. 🚀
What It Does
Isolate.run spins up a fresh isolate, runs your function there, returns the result, and shuts the isolate down for you.
All lessons in this course
- Why Isolates, Not Threads
- Isolate.run for Quick Offloading
- Spawning Isolates and Message Passing
- Compute-Heavy Tasks Without Jank