0PricingLogin
Dart Academy · Lesson

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

  1. Why Isolates, Not Threads
  2. Isolate.run for Quick Offloading
  3. Spawning Isolates and Message Passing
  4. Compute-Heavy Tasks Without Jank
← Back to Dart Academy