# Functions
CloseWithErrCapture closes closer, wraps any error with message from fmt and args, and stores this in err.
CloseWithLogOnErr is making sure we log every error, even those from best effort tiny closers.
DeleteAll deletes all files and directories inside the given dir except for the ignoreDirs directories.
ExhaustCloseWithErrCapture closes the io.ReadCloser with error capture but exhausts the reader before.
ExhaustCloseWithLogOnErr closes the io.ReadCloser with a log message on error but exhausts the reader before.
Repeat executes f every interval seconds until stopc is closed or f returns an error.
RepeatInfinitely executes f every interval seconds until stopc is closed or f returns an error.
Retry executes f every interval seconds until timeout or no error is returned from f.
RetryWithLog executes f every interval seconds until timeout or no error is returned from f.