From 6b4753de8ac69deded25ed671497adf2adeba943 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 17 Sep 2022 17:16:49 -0500 Subject: pass a CancellationToken to FillAsync --- src/slskd/Shares/ISharedFileCache.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Shares/ISharedFileCache.cs b/src/slskd/Shares/ISharedFileCache.cs index 7043b030..52c7783c 100644 --- a/src/slskd/Shares/ISharedFileCache.cs +++ b/src/slskd/Shares/ISharedFileCache.cs @@ -19,6 +19,7 @@ namespace slskd.Shares { using System.Collections.Generic; using System.Text.RegularExpressions; + using System.Threading; using System.Threading.Tasks; using Soulseek; @@ -44,8 +45,9 @@ namespace slskd.Shares /// Initiates the scan, then yields execution back to the caller; does not wait for the operation to complete. /// The list of shares from which to fill the cache. /// The list of regular expressions used to exclude files or paths from scanning. + /// The optional cancellation token to monitor. /// The operation context. - Task FillAsync(IEnumerable shares, IEnumerable filters); + Task FillAsync(IEnumerable shares, IEnumerable filters, CancellationToken cancellationToken = default); /// /// Returns the contents of the specified . -- cgit v1.2.3