Silly question, could coroutines help improve implementation of observer pattern?
z
Zach Klippenstein (he/him) [MOD]
07/29/2019, 5:28 PM
How so? They are not fundamentally related. Some coroutine utilities use the observer pattern (`Channel`s, `Job`s, `CompletableDeferred`s to name a few). And you can use coroutine tools (
suspendCoroutine
,
Flow
) to implement/adapt observers, but that’s not coroutine specific – libraries like RxJava do the same thing.