Facebook icon GitHub icon LinkedIn icon Mastodon icon Instagram icon Pinterest icon YouTube icon Twitter icon
Rick Busarow
  • Home
  • Writing
  • Speaking
  • Projects
Subscribe
Tagged

Kotlin

A collection of 4 posts

Stronger Typing for CoroutineScopes
Kotlin

Stronger Typing for CoroutineScopes

Don't guess about what kind of CoroutineScope you have.

  • Rick Busarow
Rick Busarow Jan 11, 2020 • 5 min read
Improving LiveData nullability in Kotlin
Kotlin

Improving LiveData nullability in Kotlin

Since its initial release more than two years ago, Android’s LiveData has been an incredibly popular, simple approach to safe-ish reactive programming. However, even though it was announced on the same day as Kotlin support, it is a Java library and doesn’t have perfect Kotlin interop. Part of

  • Rick Busarow
Rick Busarow Dec 27, 2019 • 4 min read
Kotlin

Why your class probably shouldn’t implement CoroutineScope

Prior to the introduction of CoroutineScope and Structured Concurrency, when we wanted to create a coroutine in a class we would do something like this: class SomeClass { fun fireAndForget() { launch { ... } } } When the coroutines team introduced Structured Concurrency, they changed the coroutine builder functions launch() and async() from being top-level to

  • Rick Busarow
Rick Busarow Jun 9, 2019 • 2 min read
Eliminating Coroutine leaks in tests
Coroutines

Eliminating Coroutine leaks in tests

Coroutines are all the rage right now, and if you’re writing coroutines, you’re probably writing tests for them. Writing tests for coroutines can be difficult, not only because of concurrency concerns, but because it is very easy to create leaks which live on past the lifecycle of an

  • Rick Busarow
Rick Busarow May 24, 2019 • 8 min read
Rick Busarow © 2025
  • github
Powered by Ghost