The Brain Dump
My brain poured out on paper (or so to speak)
Translate This Page
Translate this page
Windows Live ID
windows phone 7
Browse by Tags
The Brain Dump
Tagged Content List
Tasks and awaits and Rx! (And Drones!) Oh My!
A few people I work with are tinkering with an off-the-shelf drone in our spare time and so we are writing a C# library to control it. The way it works is you send UDP commands to the drone and you receive a stream of status & navigation UDP packets from it. So everything is asynchronous by default...
14 Apr 2014
async/await does not “release the thread”
There is some language around async/await that I am going to stop using. I’ve heard others use it as well because it does help get the point across but I believe it is ultimately misleading. Async/await does not “release the thread.” To see this you need to look at one level higher...
25 Mar 2014
Simple consoles and async
When presenting, I like to demonstrate simple concepts in console apps because they don’t have any other baggage around them. This is a problem with async code though because you cannot have an async Main method. Entry point methods cannot be marked async. To do async work here, though, you don’t have...
21 Nov 2013
Cancellable “awaiting” on .NET events continued
Compose, compose, compose. Reuse, reuse, reuse. In the last post on cancellable “awaiting” on .NET events , I was so busy focusing on the wrapping the click event in order to get a smooth async control flow for the caller, I neglected to do the same inside the click event wrapper code. The framework...
6 Aug 2013
Cancellable “awaiting” on .NET events
My last couple of posts have been inspired by await-ing things (see Lucian’s list ) which allow you to use Tasks and the new C# async features to write synchronous looking expressive code around things that are not based on threads. There was one bit that was bothering me in the last post about drag...
1 Aug 2013
Drag and Drop with Tasks & Async
Lucian has an excellent series on turning things into Tasks so that you can can be compose them and await them. The Drag and Drop one caught my eye because it is a similar example to the common Reactive Extension demo of the same thing. Drag and Drop is interesting because it is started by an event ...
25 Jul 2013
Tasks are not Threads
One of the common misconceptions I’ve encountered when developers first start using the Task Parallel Library is that they think Tasks are just fancy threads. This is easy to assume because in a common case, calling Task.Run(…), it actually does run the Task activity on a thread from the thread pool...
24 Apr 2013
Page 1 of 1 (7 items)
© 2015 Microsoft Corporation.
Privacy & Cookies