Example #1
0
        public Computation(Action <T> action, ComputationCookie cookie)
        {
            this.action    = action;
            this.scheduler = DefaultWorkScheduler.Scheduler;

            this.Cookie = cookie;
        }
Example #2
0
        public FiberComputation(Func <T, IEnumerable <FiberStatus> > fiberAction, ComputationCookie cookie)
        {
            this.action       = fiberAction;
            this.scheduler    = DefaultWorkScheduler.Scheduler;
            this.fiberContext = action(state).GetEnumerator();

            this.Cookie = cookie;
        }
Example #3
0
 public Computation(Action <T> action, ComputationExecutionType executionType, ComputationCookie cookie)
     : this(action, cookie)
 {
 }