Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Hello, and welcome to the fourth lesson. In this lesson, you’ll learn:

  • How to return values from coroutines
  • How to use the Deferred interface to get the result of an asynchronous computation
  • You’ll also learn how to use the async coroutine builder to start a coroutine that returns a result

This lesson consists of the following sections:

  • The purpose of async and await.
  • Details on how to implement a coroutine that returns a value.

Ready? Time to get started!

See forum comments
Download course materials from Github
Previous: Understand Scope and Dispatchers Next: Instructions