static async void TransmitEvents() { while (!cancellationToken.Token.IsCancellationRequested) { await _server.BroadcastMessage(); await Task.Delay(TRANSMIT_DELAY_MS); } }
static async void TransmitEvents() { while (!cancellationToken.Token.IsCancellationRequested) { await _server.BroadcastMessage(); await Task.Delay(TRANSMIT_DELAY_MS); } }