refactor: CreateFetchAsyncAction in CreateFetchAction umbenannt

This commit is contained in:
Developer 02 2024-07-30 11:46:58 +02:00
parent ccf76a72c1
commit 8c1ae0e373

View File

@ -60,7 +60,7 @@ namespace WindreamHub.Legacy.Client.Models
});
}
public static Func<Task> CreateFetchAsyncAction<TData, TError>(this Task<SimplifiedResponse<TData, TError>> responseAsync, Action<TData> next, Action<TError> error = null, CancellationToken cancellationToken = default)
public static Func<Task> CreateFetchAsync<TData, TError>(this Task<SimplifiedResponse<TData, TError>> responseAsync, Action<TData> next, Action<TError> error = null, CancellationToken cancellationToken = default)
{
return async () =>
{
@ -75,7 +75,7 @@ namespace WindreamHub.Legacy.Client.Models
};
}
public static Action CreateFetchAction<TData, TError>(this Task<SimplifiedResponse<TData, TError>> responseAsync, Action<TData> next, Action<TError> error = null, CancellationToken cancellationToken = default)
public static Action CreateFetch<TData, TError>(this Task<SimplifiedResponse<TData, TError>> responseAsync, Action<TData> next, Action<TError> error = null, CancellationToken cancellationToken = default)
{
return () => Task.Run(async () =>
{