1
This commit is contained in:
@@ -50,12 +50,6 @@ namespace Tnb.WarehouseMgr
|
|||||||
await TimedTask(cts => setSortingService.PackSortingByAdd(cts), setSortingCts, toUserIds);
|
await TimedTask(cts => setSortingService.PackSortingByAdd(cts), setSortingCts, toUserIds);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task? TimedTask(Func<Task>? withOutParamAction = null, Func<TimedtaskInput, Task>? withParemAction = null, TimedtaskInput? parameter = null)
|
|
||||||
{
|
|
||||||
return parameter != null ? withParemAction?.Invoke(parameter) : withOutParamAction?.Invoke();
|
|
||||||
}
|
|
||||||
|
|
||||||
private Task TimedTask(Func<CancellationTokenSource, Task> action, CancellationTokenSource cts, List<string>? toUserIds = default)
|
private Task TimedTask(Func<CancellationTokenSource, Task> action, CancellationTokenSource cts, List<string>? toUserIds = default)
|
||||||
{
|
{
|
||||||
var token = cts.Token;
|
var token = cts.Token;
|
||||||
|
|||||||
Reference in New Issue
Block a user