In C#.Net, Is it possible to program asynchronously without using thread like Node.js?
Asked
Active
Viewed 173 times
-3
-
Did you research anything before posting this question? A simple Google search for [`c# asynchronous`](https://www.google.com/search?q=c%23+asynchronous) yields over 850,000 results, the first of which will lead you directly to `async`/`await`. Even prior to .NET 4.5, the many of the BCL classes support async operations via callbacks. – Jonathon Reinhart May 28 '15 at 05:53
-
@JonathonReinhart thaks for the answer, I know that we can await for a method that implements awaitable. My question was, does awatable method need a different thread or it can run in main thread? – Bulbul Ahmed May 28 '15 at 06:19
1 Answers
2
Simple answer yes that is possible using async and await.
Start here for learning this technology : http://blog.stephencleary.com/2012/02/async-and-await.html

Philip Stuyck
- 7,344
- 3
- 28
- 39
-
Thanks Philip. I know that we can await for a method that implements awaitable. My question was, does awatable method need a different thread or it can run in main thread? – Bulbul Ahmed May 28 '15 at 06:19
-
2This post is absolutely awesome (and goes into more detail as to how pure async operations don't block *any threads at all*): http://blog.stephencleary.com/2013/11/there-is-no-thread.html – Baldrick May 28 '15 at 06:40