Hot to repeat request after check.

I need some help here. I’m trying to make a load test, but i’m stuck on repeting request. So what i’m trying to do, is to make a request again after a check assigned to it successes or fails by timeout. I’ts easy to do with blocking wait check, but i need to use non-blocking listen check to send heartbeats. I tried to figure out a solution, but it’s not working.

.exec(session => session.set(“semaphore”, “hola”))
.during(120) {
doIf(session => session(“semaphore”).as[String].nonEmpty) {
exec(session => session.set(“semaphore”, “”))
exec(ws(“Reconciliate states”).reconciliate)
.exec(ws(“Say Hello WS”)
pace(15 seconds)

Sorry, I don’t see any simple solution atm.