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

Huan

08/17/2021, 1:36 PM
Hi, I am using a callbackFlow{} and I am not sure if I should use `offer`(deprecated) or
trySend
(experimental API). Could someone tell me what is the best choice?
d

Didier Villevalois

08/17/2021, 3:11 PM
Use either
send
,
trySend
or
trySendBlocking
depending on the kind of callback you send from.
h

Huan

08/17/2021, 3:13 PM
Thank you Didier, I was asking just because in my team they said that is better a deprecated function than an experimental. But I am not sure at all
2 Views