https://kotlinlang.org logo
#coroutines
Title
# coroutines
s

Shan

12/09/2020, 2:06 AM
Hello. Does anyone know why, when using
.asSingle()
on a
Deferred<T>
from the
kotlinx-coroutines-rx2
library, why the
coroutineContext
I pass into
.asSingle()
can't contain a Job?
I see it throws an
IllegalArgumentException
but am unclear why.
s

satyan

12/09/2020, 6:30 AM
s

Shan

12/09/2020, 6:45 PM
Ah okay, that makes sense. Thanks!
👍 1
6 Views