thana
01/10/2020, 1:34 PMMono
into a Deferred
? I can see we can transofrm it into a Flow
which feels wrong as the Mono
provides at most one valueDominaezzz
01/10/2020, 1:48 PMDeferred
also seems wrong.thana
01/10/2020, 1:52 PMPublisher
with basic rx operators that completes successfully by emitting an element, or with an error.`Dominaezzz
01/10/2020, 2:01 PMMono.await()
suspend function or similar. It is discouraged to use the Deferred
type, you just suspend instead (where possible).Dominaezzz
01/10/2020, 2:04 PMawaitSingle()
.Adam Powell
01/10/2020, 2:05 PMDeferred
is more of a future, it's an operation already in flight. It's hot, not coldstreetsofboston
01/10/2020, 2:14 PMLAZY
, a Deferred is cold (but it's a 'shared' Mono/Single, since calling await() again won't restart the operation).Adam Powell
01/10/2020, 2:20 PMthana
01/10/2020, 2:22 PM