xizzhu
  • About
  • Posts
  • Bible
  • 随笔
xizzhu

coroutine


limitedParallelism() doesn't limit concurrency

 Posted on November 10, 2023  |  Xizhi Zhu

In Coroutine 1.6.0, limitedParallelism() was introduced to provide a view of the underlying dispatcher, guaranteeing no more than the specified coroutines can be executed at the same time.

[Read More]
kotlin  coroutine 

Cancelling coroutines is easy, right?

 Posted on May 2, 2023  |  Xizhi Zhu

With a well-designed support for structured concurrency, cancelling should be easy, and calling job.cancel() will do the trick, right?

[Read More]
kotlin  coroutine 

Kotlin Coroutines: Flows

 Posted on December 9, 2019  |  Xizhi Zhu

Kotlin Coroutines enables us to asynchronously return a single value, but how about multiple values?

[Read More]
kotlin  coroutine  flow 

Kotlin Coroutines: Structured Concurrency

 Posted on May 24, 2019  |  Xizhi Zhu

In the previous article, we discussed the basics on how to Kotlin Coroutines. Now, let’s continue to the topic of structured concurrency.

[Read More]
kotlin  coroutine 

Kotlin Coroutines: The Basics

 Posted on May 23, 2019  |  Xizhi Zhu

Starting with the 1.3 release, Kotlin provides a nice and flexible way to do asynchronous or non-blocking programming: Coroutines.

[Read More]
kotlin  coroutine 

Xizhi Zhu  • © 2023  •  xizzhu

Hugo v0.118.2 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll