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

taer

07/28/2020, 10:22 PM
simple one for y'all.. I have a bounded blocking queue. So
offer
will be blocking. I the right way to offer to this queue is with
runInterruptibe
?
o

octylFractal

07/28/2020, 10:28 PM
is this a like java
BlockingQueue
? if so, are you `offer`ing from a coroutine here?
t

taer

07/28/2020, 10:45 PM
yup
I want my coroutine to block on a
offer
block
o

octylFractal

07/28/2020, 10:48 PM
don't forget to switch to IO dispatcher
t

taer

07/28/2020, 11:01 PM
Thanks. That's what I figured.
Just good to get confirmations
2 Views