Simplify call to Task.Run
We don't need to await the call to `ConnectAsync` in the async lambda passed to `Task.Run`. Instead we can just have a lambda that returns the same `Task` returned by `ConnectAsync` and `Task.Run` will do the right thing.
Showing
想要评论请 注册 或 登录