Would be nice to support behavior for how the RestartingServer restarts.
Currently, there's a 5 second cooldown hardcoded in:
|
try? await Task.sleep(nanoseconds: 5 * NSEC_PER_SEC) |
Possible idea:
enum RestartBehavior {
case nextRequest
case afterCooldown(seconds: Int)
}