/// <summary> /// Enqueues a conditional statement into the task queue. The method will /// run immediately following the previous work item, and may not leave /// any time before executing the next. This is a specialized method to /// be used for performance improvements. /// </summary> /// <param name="test">The work item test.</param> /// <param name="conditional">The conditional function or statement.</param> public static void EnqueueQuickConditional(this WorkItemTest test, Func <bool> conditional) { test.EnqueueQuickWorkItem(test.CreateConditional(conditional)); }
/// <summary> /// Enqueues a method into the task queue. The method will run /// immediately following the previous work item, and may not leave any /// time before executing the next. This is a specialized method to be /// used for performance improvements. /// </summary> /// <param name="test">The work item test.</param> /// <param name="callback">The callback action or method.</param> public static void EnqueueQuickCallback(this WorkItemTest test, Action callback) { test.EnqueueQuickWorkItem(test.CreateCallback(callback)); }