/// <summary> /// Enqueue a callback as a work item to be invoked with the current <see cref="TaskEnv"/>. /// </summary> /// <param name="dispatchQueue">DispatchQueue to enqueue work into.</param> /// <param name="callback">Work item callback.</param> public static void QueueWorkItemWithCurrentEnv(this IDispatchQueue dispatchQueue, Action callback) { dispatchQueue.QueueWorkItemWithCurrentEnv(callback, null); }
/// <summary> /// Enqueue a callback as a work item to be invoked with the current <see cref="TaskEnv"/>. /// </summary> /// <typeparam name="T">Result value type of callback.</typeparam> /// <param name="dispatchQueue">DispatchQueue to enqueue work into.</param> /// <param name="callback">Work item callback.</param> public static void QueueWorkItemWithCurrentEnv <T>(this IDispatchQueue dispatchQueue, Func <T> callback) { dispatchQueue.QueueWorkItemWithCurrentEnv(callback, null); }