Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Potential Deadlock #91
A GUI client (such as a Windows Forms app) or an MVC client will deadlock if it calls the method as follows:
(The constructor for the
Note that the connect method blocks on a Task object because of the call to
@anirudhsanthiar you are right. There are also other methods (e.g. SenderLink.Send, ReceiverLink.Recieve) that are blocking on an underlying task. If they are called from a UI thread, the same issue will happen. In such cases, the async methods should be called. For example,
I think we could either improve the documentation to make it obvious or remove the blocking APIs on certain platforms.