On channels, is there any reason you want to use t...
# kotlin-native
j
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
is this a question for #coroutines, or Kotlin/Native? :)
j
Dont know, its Kotlin question kind a?
e
if you are not in a
suspend
context, you cannot call
emit
but yes, this question is better suited to #coroutines
everything in this Slack community is Kotlin related. this channel is about Kotlin/Native in particular, as you can see from the description