Imandrakit_thread.Supervisor
Supervisor-like features
val retry_loop :
?max:int ->
?initial_delay_before_restart_s:float ->
?max_delay_before_restart_s:float ->
unit ->
(attempt_number -> 'a) ->
'a
retry_loop f
runs f()
; if f()
fails, the loop waits a bit and tries again.