Jeff Hudson
08/13/2025, 7:56 PMCyclicBarrier
is really nice, but using it from Kotlin is not nice, since it's not coroutine-friendly.
I've searched high and low, and haven't found a good alternative other than to roll my own. Has anyone run into this?Jeff Hudson
08/13/2025, 7:56 PMAdam S
08/13/2025, 8:12 PMCyclicBarrier
exists in Arrow - is this useful for you?
https://apidocs.arrow-kt.io/arrow-fx-coroutines/arrow.fx.coroutines/-cyclic-barrier/index.htmlJeff Hudson
08/13/2025, 8:29 PMJeff Hudson
08/13/2025, 9:06 PMJeff Hudson
08/13/2025, 9:06 PMCyclicBarrier
implementation and tests, which was certainly worse than the Arrow version
https://github.com/hudson155/kairo/pull/694