Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SpoolingTaskBase.cs
Go to the documentation of this file.
2
3internal abstract class SpoolingTaskBase : QueryTask
4{
5 protected SpoolingTaskBase(int taskIndex, QueryTaskGroupState groupState)
6 : base(taskIndex, groupState)
7 {
8 }
9
10 protected override void Work()
11 {
12 try
13 {
15 }
16 catch (Exception ex)
17 {
18 if (!(ex is OperationCanceledException ex2) || !(ex2.CancellationToken == _groupState.CancellationState.MergedCancellationToken) || !_groupState.CancellationState.MergedCancellationToken.IsCancellationRequested)
19 {
21 throw;
22 }
23 }
24 finally
25 {
27 }
28 }
29
30 protected abstract void SpoolingWork();
31
32 protected virtual void SpoolingFinally()
33 {
34 }
35}
CancellationTokenSource InternalCancellationTokenSource
QueryTaskGroupState _groupState
Definition QueryTask.cs:10
SpoolingTaskBase(int taskIndex, QueryTaskGroupState groupState)