The scenario I'm trying to solve is this: I have a testing program that makes the network the network endpoint on the system.
In this test program, the berth server runs on which it expects a callback from an external system, which completes the successful testing cycle. If the callback is not received within a certain time interval (timeout), the test is not performed.
To achieve this, I want the tester to wait for the “event” that the berth handler will set after the callback.
I was thinking about using java CyclicBarrier, but I am wondering if clojure has an idiomatic way to solve this problem.
thank
source
share