StephenCleary / AsyncEx

A helper library for async/await.
MIT License
3.53k stars 356 forks source link

AwaitableDisposable isn't portable between platforms with async support and without it #13

Closed dsplaisted closed 8 years ago

dsplaisted commented 9 years ago

The problem is described in this StackOverflow question: http://stackoverflow.com/questions/28703336/nuget-pcl-library-conflict

To fix this issue, you would need to depend on the Microsoft.Bcl.Async package for all platforms (even those that natively support async), and return the TaskAwaiter from the Microsoft.Runtime.CompilerServices in all cases.

glen-nicol commented 8 years ago

Has any progress been made or even accessed on this issue? I am running into this when I try to test my PCL with Nunit and have to reference Nito in the test library in order to test an interface with AwaitableDisposable.

StephenCleary commented 8 years ago

Not yet, sorry. There isn't currently a way to build AsyncEx, but building a build VM is on my todo list. Unfortunately, this will take at least half a day, and I won't have that much time available for some time.

StephenCleary commented 8 years ago

Should be fixed in 4.0.0-pre.