/// <summary> /// Executes an Eff computation with a call/cc effect handler, /// using provided success and exception continuations. /// </summary> public static Task StartWithContinuations(this Eff eff, Func <Task> onSuccess, Func <Exception, Task>?onException = null) { var effU = Eff.FromUntypedEff(eff); return(StartWithContinuations <Unit>(effU, _ => onSuccess(), onException)); }
public ResumableEffectHandler(Eff suspendableWorkflow) { _stateMachine = Eff.FromUntypedEff(suspendableWorkflow).GetStateMachine(); }
public static Task Run(Eff eff) => Run(Eff.FromUntypedEff(eff));