Is there a CompletableDeffered with a reset? Such ...
# coroutines
b
Is there a CompletableDeffered with a reset? Such as, once I get my result, I can choose to reset it so that if I want to call await() again it has to wait for a new value. Or perhaps I’m just looking for a different class
b
Deferred
is isolated from how the value is being obtained, so it's not resettable unfortunately. The Flow/generic suspend function should fill your needs though
l
A Channel with a capacity of 1, 0 or conflated should fit your needs