Loading topic
async/await and Future. It also assumes you know why long synchronous work blocks the event loop and drops frames in a Flutter app. Here you will learn what an isolate is and what it does not share with other isolates. You will also learn how7 min readIsolate.run, the standard way to move one piece of work off the calling isolate. It assumes you know Dart async/await and Future, and that you understand why a long synchronous computation blocks the event loop. It also assumes you know that each isolate has its own heap.5 min readasync/await and Future, and that you know why Flutter's UI isolate must stay responsive. It also assumes you have read the previous chapter on Isolate.run. Here you will learn how compute fits on top of that, how to use it in widgets, and where it differs from6 min readasync/await code, you know what Isolate.run does, and you know that isolates have separate heaps. Here you will learn which values can cross an isolate boundary, what a copy means for your code, and which mistakes cause errors or surprising behavior.5 min readIsolate.run and compute, and that you have read the previous chapter on what can be sent between isolates. Here you will learn how a closure you pass to an isolate can pull in far more than you wrote, and how to stop that from happening.5 min readIsolate.run, know the difference between an Exception and an Error, and have seen try/catch with await. It covers what happens to a failure that starts in another isolate: where it surfaces, what survives the trip, and how to report errors from a long-liv5 min readasync/await, you have used Isolate.run, and you know that isolates have separate heaps and communicate by copyin6 min readasync/await, Future, and basic Stream usage. You should also know that Isolate.run runs one closure in a new isolate and returns its result. Isolate.run is built on the lower-level pieces covered here: Isolate.spawn, ReceivePort, and `Sen6 min readIsolate.run starts a new isolate, runs one closure, and throws the isolate away. That suits one-off jobs. If your app sends many jobs, you pay the startup cost each time, and any state the worker built is lost. A long-lived worker isolate starts once, keeps running, and handles requests as they ar5 min readIsolate.run and Isolate.spawn, and that you know a message sent between isolates is copied. Here you will see when that copy becomes a cost, and how TransferableTypedData reduces it for byte buffers.6 min readIsolate.run, Isolate.spawn, and ports from the earlier chapters. It also assumes you know what a Flutter plugin is: a package with Dart code that talks to Android, iOS, or desktop code through platform channels. You should be comfortable with async/await.6 min readIsolate.run, know that isolates exchange copied messages, and have seen compute in Flutter. It covers the places where those tools stop working or stop helping. The biggest one is the web, where Dart has no isolates.7 min read