Skip to content

Commit

Permalink
Merge branch 'master' of github.com:linksplatform/Threading
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Feb 14, 2022
2 parents 0f56891 + b492ebc commit c9f65ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/Platform.Threading/ConcurrentQueueExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public static async Task AwaitOne(this ConcurrentQueue<Task> queue)
/// <param name="queue"><para>The queue of asynchronous operations.</para><para>Очередь асинхронных операций.</para></param>
/// <param name="action"><para>The <see cref="Action"/> delegate.</para><para>Делагат <see cref="Action"/>.</para></param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void EnqueueAsRunnedTask(this ConcurrentQueue<Task> queue, Action action) => queue.Enqueue(Task.Run(action));
public static void RunAndPush(this ConcurrentQueue<Task> queue, Action action) => queue.Enqueue(Task.Run(action));
}
}

0 comments on commit c9f65ed

Please sign in to comment.