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

bdawg.io

12/20/2018, 2:25 AM
Is there a type of channel that gives you an exclusive "lease" to an element until either a) the worker acknowledges it should be removed or b) a time out is reached that returns the element back to the front of the channel? (similar to Amazon's SQS)
d

dave08

12/20/2018, 3:59 AM
I think a regular channel with unlimited (or limited) buffer + ticker channel, and use a
select
on both. @bdawg.io
7 Views