Open kazrakcom opened 2 years ago
The code currently avoids oversleeping due to machine sleep by not sleeping for more than 5 minutes at a time - decidedly suboptimal.
The ideal solution would be to use the ExternalNow API when it's available: https://github.com/golang/go/issues/36141
Alternate solutions include using Unix nanosleep or similar.
The code currently avoids oversleeping due to machine sleep by not sleeping for more than 5 minutes at a time - decidedly suboptimal.
The ideal solution would be to use the ExternalNow API when it's available: https://github.com/golang/go/issues/36141
Alternate solutions include using Unix nanosleep or similar.