Exemple #1
0
        /// <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));
        }
Exemple #2
0
 public ResumableEffectHandler(Eff suspendableWorkflow)
 {
     _stateMachine = Eff.FromUntypedEff(suspendableWorkflow).GetStateMachine();
 }
Exemple #3
0
 public static Task Run(Eff eff) => Run(Eff.FromUntypedEff(eff));