mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
added cancellation tokens to more apiclient methods
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.Dto;
|
||||
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
@@ -19,5 +20,10 @@ namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
return apiClient.GetImageStreamAsync(url, CancellationToken.None);
|
||||
}
|
||||
|
||||
public static Task<UserDto[]> GetPublicUsersAsync(this IApiClient apiClient)
|
||||
{
|
||||
return apiClient.GetPublicUsersAsync(CancellationToken.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user