// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
#pragma warning disable CA1063
namespace CommunityToolkit.Common.Deferred;
///
/// Deferral handle provided by a .
///
public class EventDeferral : IDisposable
{
//// TODO: If/when .NET 6 is base, we can upgrade to non-generic version
private readonly TaskCompletionSource