using System.Net.Sockets; namespace Supercell.GUT.Server.Network.Tcp; internal static class SocketExtensions { public static async ValueTask AcceptSocketAsync(this Socket socket, CancellationToken ct) { try { return await socket.AcceptAsync(ct); } catch (OperationCanceledException) { return null; } } }