Filters

Hide filters
Platform
Content Type
Difficulty

All Tutorials · 21 Results

Contained in: Kotlin Coroutines by Tutorials kotlin coroutines
Android & Kotlin
Kotlin Coroutines by Tutorials
…responsive app is by leaving the UI thread as free as possible, letting all the hard work be done asynchronously by background threads. Kotlin Coroutines by Tutorials will teach you the techniques you need to solve common programming problems using asynchronous programming…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Coroutines & Android

…chapter, you’ll learn what mechanisms exist for asynchronous programming on the Android platform and why coroutines perform much better. You’ll see what Kotlin coroutines bring to the table and how they simplify various facets of Android development. To see this in action, you’ll use a simple Disney…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

What Is Asynchronous Programming?

…make asynchronous calls without including a third-party framework. Many other programming languages utilize external libraries in order to support programming with coroutines. Kotlin also has coroutine support in its standard library. Additionally, the way Kotlin coroutines are built using global and extension functions with receivers, makes them very extensible…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Async/Await

In multithreading and asynchronous development in Java, you often use Runnable, Callable and Future. With coroutines, you can use Deferred instead. These are objects that…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Coroutines & Jetpack

…inside ViewModels and make your functions safe to execute on the main thread. Compare LiveData to Kotlin Flow and learn how to observe flows from Jetpack Compose safely. See how to test coroutines on Android…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Conclusion

coroutines in different environment like Java. And, remember, if you want to further your understanding of Kotlin and Coroutine app development after working through Kotlin Coroutines by Tutorials, we suggest you read the Android Apprentice, available online: https://www.raywenderlich.com/books/android-apprentice If you have any questions or comments as you work…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Getting Started With Coroutines

This is the chapter where you’ll learn the main concepts about coroutines like builders, scope and context. You’ll see for the first time…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Suspending Functions

To understand how to use coroutines, you need to learn what a suspending function is and how to implement it. In this chapter, you’ll…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Manage Cancellation

…return value. This Job object represents the running coroutine, which you can cancel at any point by calling cancel(). This is interesting because with Kotlin coroutines, you have the ability to specify a parent job as a context for multiple coroutines, and calling cancel() on the parent coroutine will result…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Introduction

Android application and you’ll see how to use coroutines in order to create a very responsive application. The best way to learn about Kotlin Coroutines is to roll up your sleeves and start coding. Enjoy the book…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Networking With Coroutines

Learn how you can utilize Kotlin Coroutines to make your networking code simple and performant. You'll explore several ways of doing API calls with Retrofit library and coroutines
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Context Switch & Dispatching

…able to switch between the threads in a single task. When you think about it, these two concepts stand toe-to-toe in Kotlin Coroutines. If you need to do something in the background, and then switch to the main thread, posting a value or some result of an operation…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Testing Coroutines

Testing is a fundamental part of the development process and coroutines are not different. In this chapter, you'll learn how to test coroutines using…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Building Sequences & Iterators With Yield

Sequences are one of the most interesting features of Kotlin because they allow generating values lazily. When you implement a sequence you use the yield…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Beginning With Coroutine Flow

In this chapter, you'll learn what Coroutine Flow is and how to use it in your project.
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

SharedFlow & StateFlow

…also learn about these concepts in more depth in the last section of the book so keep reading to learn more about Kotlin Coroutines and how to use them in Android…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

What You Need

…before continuing with the book. Chapter 2: “Setting Up Your Build Environments” will show you how to get started with IntelliJ IDEA to run Kotlin coroutines code…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Setting Up Your Build Environments

…work. Where to Go From Here? Now that you have environments set up, you can finally work on projects and write some Kotlin and coroutines code. Some of the chapters in the book might come with starter projects, which are already set up, so you don’t have…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Exception Handling

…try/catch block to catch exceptions and handle them like you would do in normal synchronous programming with Kotlin. There’s a catch though. Coroutines created with async coroutine builder can typically swallow exceptions if you’re not careful. If an exception is thrown during an execution of the async block…
Android & Kotlin

Chapter in Kotlin Coroutines by Tutorials

Persistence & Coroutines

Learn how to use Room's built-in support for coroutines to make your database communication as simple as possible.