refactor: CreateFetchAsyncAction in CreateFetchAction umbenannt
This commit is contained in:
parent
ccf76a72c1
commit
8c1ae0e373
@ -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 () =>
|
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 () =>
|
return () => Task.Run(async () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user