Learning goals

After following this tutorial, you will be able to:

  • Understand what ‘async’ allows you to do in Dezyne

  • Identify when ‘async’ may be used and when it may not be used

  • Reason about design decisions when using the ‘async’ keyword

Intended audience and prerequisites

The behaviour described with the ‘async’ keyword requires you to be able to reason about your application in terms of active threads and their calling context and synchronous / asynchronous calling concepts. In the tutorial, various examples will be discussed but it helps if you are familiar with these concepts. It is best to be familiar with the ‘blocking’ keyword before studying this tutorial.

Usage of ‘async’ requires the availability of an event pump in the System it is contained in. An event pump is generated automatically with the generation of a thread-safe-shell. For more information read an article about the event pump and one about the thread-safe shell.

Platform choice

This tutorial has no hardware related examples.

Enjoy this article? Don't forget to share.