using System; using System.Threading.Tasks; using MQTTnet.Core.Packets; namespace MQTTnet.Core.Client { public class MqttPacketAwaiter : TaskCompletionSource { public MqttPacketAwaiter(Func packetSelector) { PacketSelector = packetSelector ?? throw new ArgumentNullException(nameof(packetSelector)); } public Func PacketSelector { get; } } }