This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyNetworkClient { | |
public event SomeDelegate OnException; | |
public async Task ConnectAsync(string address) { | |
await this.MakeTheActualConnection(address); | |
this.BeginReceiveLoop(); | |
} | |
// It's async void! But is that bad? | |
// I know that an unhandled exception here is going to bring down the process, but where else do you want |