| File: System\Threading\Channels\AsyncOperation.netcoreapp.cs | Web Access |
| Project: src\runtime\src\libraries\System.Threading.Channels\src\System.Threading.Channels.csproj (System.Threading.Channels) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Threading.Channels { internal partial class AsyncOperation : IThreadPoolWorkItem { void IThreadPoolWorkItem.Execute() => SetCompletionAndInvokeContinuation(); private void UnsafeQueueSetCompletionAndInvokeContinuation() => ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false); private static void Unregister(CancellationTokenRegistration registration) => registration.Unregister(); } }