On channels, is there any reason you want to use tryEmit over emit, or why does it exist?
Read blog post main difference emit can use buffer but not tryEmit. Got confused myself when I was trying to explain difference to a colleague. Whats the thing? 😁
a
Adam S
07/07/2023, 6:28 AM
is this a question for #coroutines, or Kotlin/Native? :)
j
Joel Denke
07/07/2023, 6:29 AM
Dont know, its Kotlin question kind a?
e
ephemient
07/07/2023, 6:29 AM
if you are not in a
suspend
context, you cannot call
emit
ephemient
07/07/2023, 6:30 AM
but yes, this question is better suited to #coroutines
ephemient
07/07/2023, 6:31 AM
everything in this Slack community is Kotlin related. this channel is about Kotlin/Native in particular, as you can see from the description