comparison Implab/ActionTask.cs @ 244:eee3e49dd1ff v3

working on promises
author cin
date Thu, 25 Jan 2018 19:09:16 +0300
parents 40d7fed4a09e
children
comparison
equal deleted inserted replaced
243:b1e0ffdf3451 244:eee3e49dd1ff
1 using System; 1 using System;
2 2
3 namespace Implab { 3 namespace Implab {
4 public class ActionTask : ActionTaskBase, IDeferred { 4 public class ActionTask : ActionTaskBase, IResolvable {
5 readonly Action m_task; 5 readonly Action m_task;
6 public ActionTask(Action task, Action<Exception> error, Action<Exception> cancel, bool autoCancellable) : base(error,cancel, autoCancellable) { 6 public ActionTask(Action task, Action<Exception> error, Action<Exception> cancel, bool autoCancellable) : base(error,cancel, autoCancellable) {
7 m_task = task; 7 m_task = task;
8 } 8 }
9 9