Dart Concurrency
What is Dart Concurrency?
Dart Concurrency: Dart concurrency lets a program make progress on multiple tasks, using asynchronous operations or isolates. Awaiting network I/O allows an event loop to handle other work. A long CPU calculation can still block that loop. On native platforms an isolate can run such work separately. Measure stalls before moving expensive parsing or transformations off the main isolate.
Frequently asked questions about Dart Concurrency
What should you keep in mind with Dart Concurrency?
Account for message transfer overhead and check web support separately. Awaiting a future does not by itself move CPU work off the main thread.
What does an example of Dart Concurrency look like?
await Isolate.run(() => parseReport(raw)); At a glance
| Category | Flutter & Dart |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |