Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ContinueBoolTaskFuncWhenFalseAsync< TArg >()

static Task< bool > System.Xml.AsyncHelper.ContinueBoolTaskFuncWhenFalseAsync< TArg > ( this Task< bool > task,
Func< TArg, Task< bool > > func,
TArg arg )
inlinestatic

Definition at line 79 of file AsyncHelper.cs.

80 {
81 if (task.IsSuccess())
82 {
83 if (!task.Result)
84 {
85 return func(arg);
86 }
87 return DoneTaskTrue;
88 }
90 }
static readonly Task< bool > DoneTaskTrue
Definition AsyncHelper.cs:7

References System.Xml.Dictionary, System.Xml.AsyncHelper.DoneTaskTrue, and System.task.