public async void GetPeers(InfoHash infoHash) { CheckDisposed(); Check.InfoHash(infoHash); try { await MainLoop; var task = new GetPeersTask(this, infoHash); await task.ExecuteAsync(); } catch { // Ignore? } }
public async void GetPeers(InfoHash infoHash) { CheckDisposed(); if (infoHash == null) { throw new ArgumentNullException(nameof(infoHash)); } try { await MainLoop; var task = new GetPeersTask(this, infoHash); await task.ExecuteAsync(); } catch { // Ignore? } }