From 1fd765471018c283761eb32c33ce229b2aaa86b5 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 17 Feb 2026 21:45:15 -0600 Subject: flatten params --- src/slskd/Common/Retry.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Common/Retry.cs b/src/slskd/Common/Retry.cs index 300c1c51..f57b59d8 100644 --- a/src/slskd/Common/Retry.cs +++ b/src/slskd/Common/Retry.cs @@ -37,7 +37,13 @@ namespace slskd /// The maximum delay in milliseconds. /// The token to monitor for cancellation requests. /// The execution context. - public static async Task Do(Func task, Func isRetryable = null, Action onFailure = null, int maxAttempts = 3, int maxDelayInMilliseconds = int.MaxValue, CancellationToken cancellationToken = default) + public static async Task Do( + Func task, + Func isRetryable = null, + Action onFailure = null, + int maxAttempts = 3, + int maxDelayInMilliseconds = int.MaxValue, + CancellationToken cancellationToken = default) { await Do(async () => { @@ -57,7 +63,13 @@ namespace slskd /// The token to monitor for cancellation requests. /// The Type of the logic return value. /// The execution context. - public static async Task Do(Func> task, Func isRetryable = null, Action onFailure = null, int maxAttempts = 3, int maxDelayInMilliseconds = int.MaxValue, CancellationToken cancellationToken = default) + public static async Task Do( + Func> task, + Func isRetryable = null, + Action onFailure = null, + int maxAttempts = 3, + int maxDelayInMilliseconds = int.MaxValue, + CancellationToken cancellationToken = default) { isRetryable ??= (_, _) => true; onFailure ??= (_, _) => { }; -- cgit v1.2.3