public JsTask <TResult> TimedFunction <TResult>(Func <TResult> function, BaseProgram program = null, Func <Exception, bool> exHandler = null, JsTaskPriority priority = JsTaskPriority.EXECUTION) => TimedFunction(DEFAULT_SCRIPT_TIMEOUT, function, program, exHandler, priority);
public JsTask <TResult> Function <TResult>(Func <TResult> function, BaseProgram program = null, JsTaskPriority priority = JsTaskPriority.EXECUTION) => scheduler.Run(function, program, priority);
public JsTask <TResult> TimedFunction <TResult>(int timeout, Func <TResult> function, BaseProgram program = null, Func <Exception, bool> exHandler = null, JsTaskPriority priority = JsTaskPriority.LOWEST) => scheduler.Run(() => TimedFn(timeout, function, exHandler), program, priority);
public JsTask Function(Action function, BaseProgram program = null, JsTaskPriority priority = JsTaskPriority.EXECUTION) => scheduler.Run(function, program, priority);
public JsTask(Action function, JsTaskPriority priority = JsTaskPriority.LOWEST, BaseProgram program = null) { m_action = function; Program = program; Priority = priority; }
public virtual JsTask Run(Action action, BaseProgram program = null, JsTaskPriority priority = JsTaskPriority.LOWEST) => new JsTask(action, priority, program).Start(this);
public virtual JsTask <TResult> Run <TResult>(Func <TResult> func, BaseProgram program = null, JsTaskPriority priority = JsTaskPriority.LOWEST) => new JsTask <TResult>(func, priority, program).Start(this);