3 ms·
But doing things by hand with callbacks is going to have all of those same issues isnt it? If you dont want to infect everything then you basically need to just
by ufo 13y ago
But doing things by hand with callbacks is going to have all of those same issues isnt it? If you dont want to infect everything then you basically need to just write synchronous code instead...
- masklinn 13y agoCorrect. Same with introducing futures/deferred.
- raverbashing 13y agoThe issue I see is that with some libraries you either go 100% async or 100% sync with no middle ground.
- danabramov 13y agoThis is simply not true. You can use any C# library without using async (code rewriter). You'd still be using Tasks but there is nothing special about them (no compiler magic). They're just futures on which you can schedule continuations.
- raverbashing 13y agoI'm not talking about C#, but about libraries in other languages that support async behaviour
- angersock 13y agoPDFJS--the PDF reading package from Mozilla--is a gross offender in this regard; the mix of sync and async, and the somewhat arbitrary nature of which is which, is pretty annoying.