O'Reilly logo

Mastering Dart by Sergey Akopkokhyants

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Asynchronous Programming

In this chapter, we will look at the advanced techniques that help us execute asynchronous code—one of the most important components of Dart. Asynchronous programming is a standard programming paradigm and together with object-oriented principles, it plays an important role in the development of applications. In this chapter, we will cover the following topics:

  • Event-driven architecture
  • The Dart VM execution model
  • Future
  • Zone
  • Isolates

Call-stack architectures versus event-driven architectures

For a better understanding of asynchronous programming in Dart, we will discuss call-stack and event-driven architectures.

Call-stack architectures

Traditionally, programs are built on the concept of a call stack. This concept is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required