Method | Description | |
---|---|---|
GetAvailableTaskId ( ) : long |
Get available task id thread unsafe since it should only run in main thread
|
|
IsTaskCompleted ( long taskId ) : bool |
Is the specified task completed
|
|
LimitedConcurrencyTaskScheduler ( int maxConcurrency, |
Construct a limited concurrency task scheduler
|
|
RunTask ( Task>.Func |
Run a task
|
|
WaitForComplete ( int millisecondsTimeout, |
Wait for all task completion
|
Method | Description | |
---|---|---|
RunConcurrentTask ( long taskId, Task task ) : void |
Run async task
|
Method | Description | |
---|---|---|
RunRemainingTask ( ) : void |
Run the remaining task in the waiting queue
|
public IsTaskCompleted ( long taskId ) : bool | ||
taskId | long | Task id |
return | bool |
public LimitedConcurrencyTaskScheduler ( int maxConcurrency, |
||
maxConcurrency | int | |
cancellationToken | ||
return | System |
protected RunConcurrentTask ( long taskId, Task task ) : void | ||
taskId | long | Task id |
task | Task | Task operation |
return | void |
public RunTask ( Task>.Func |
||
taskGenerator | Task>.Func | Task generator |
return | void |
public WaitForComplete ( int millisecondsTimeout, |
||
millisecondsTimeout | int | Wait time out |
cancellationToken | Cancellation token | |
return | bool |