Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContinuationTaskFromTask.cs
Go to the documentation of this file.
2
3internal sealed class ContinuationTaskFromTask : Task
4{
6
9 {
10 m_antecedent = antecedent;
11 }
12
13 internal override void InnerInvoke()
14 {
15 Task antecedent = m_antecedent;
16 m_antecedent = null;
18 if (m_action is Action<Task> action)
19 {
20 action(antecedent);
21 }
22 else if (m_action is Action<Task, object> action2)
23 {
24 action2(antecedent, m_stateObject);
25 }
26 }
27}
ContinuationTaskFromTask(Task antecedent, Delegate action, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions)
static Task InternalCurrentIfAttached(TaskCreationOptions creationOptions)
Definition Task.cs:1628
bool NotifyDebuggerOfWaitCompletionIfNecessary()
Definition Task.cs:1438