diff --git a/sysutils.go b/sysutils.go index 20ce26e..c7fb225 100644 --- a/sysutils.go +++ b/sysutils.go @@ -353,6 +353,11 @@ func CreateCondTimer(ch chan int64, cond *sync.Cond, initSeconds int64) { } } +func ExcUntilOk(cb func()bool) { + for !cb() { + } +} + func IsDebug() bool { return true }