public StateActionWithContextScheduledTask(AbstractScheduledEventExecutor executor, Action <object, object> action, object context, object state,
                                            long deadlineNanos)
     : base(executor, deadlineNanos, executor.NewPromise(state))
 {
     _action  = action;
     _context = context;
 }
 public StateActionWithContextScheduledAsyncTask(AbstractScheduledEventExecutor executor, Action <object, object> action, object context, object state,
                                                 long deadlineNanos, long periodNanos, CancellationToken cancellationToken)
     : base(executor, deadlineNanos, periodNanos, executor.NewPromise(state), cancellationToken)
 {
     _action  = action;
     _context = context;
 }
 public StateActionScheduledTask(AbstractScheduledEventExecutor executor, Action <object> action, object state, long deadlineNanos, long periodNanos)
     : base(executor, deadlineNanos, periodNanos, executor.NewPromise(state))
 {
     _action = action;
 }
Esempio n. 4
0
 public ActionScheduledAsyncTask(AbstractScheduledEventExecutor executor, Action action, long deadlineNanos, long periodNanos, CancellationToken cancellationToken)
     : base(executor, deadlineNanos, periodNanos, executor.NewPromise(), cancellationToken)
 {
     _action = action;
 }
Esempio n. 5
0
 public ActionScheduledTask(AbstractScheduledEventExecutor executor, Action action, long deadlineNanos, long periodNanos)
     : base(executor, deadlineNanos, periodNanos, executor.NewPromise())
 {
     _action = action;
 }
 public StateActionScheduledAsyncTask(AbstractScheduledEventExecutor executor, Action <object> action, object state,
                                      long deadlineNanos, CancellationToken cancellationToken)
     : base(executor, deadlineNanos, executor.NewPromise(state), cancellationToken)
 {
     _action = action;
 }
Esempio n. 7
0
 public RunnableScheduledAsyncTask(AbstractScheduledEventExecutor executor, IRunnable action, long deadlineNanos, CancellationToken cancellationToken)
     : base(executor, deadlineNanos, executor.NewPromise(), cancellationToken)
 {
     _action = action;
 }