FlipFlopAsync Method
Definition
FlipFlopAsync(bool, Func<Task>, Func<Task>)
Invokes one of two expressions depending on the value of condition.
public static Task FlipFlopAsync(bool condition, Func<Task> firstExpression, Func<Task> secondExpression)
Parameters
conditionboolWhen
true, thefirstExpressionis invoked; whenfalse, thesecondExpressionis invoked.firstExpressionFunc<Task>The function delegate that is invoked when
conditionistrue.secondExpressionFunc<Task>The function delegate that is invoked when
conditionisfalse.