No announcements
Found 2292334 threads
-
3 Votes
await keyword not working
The problem is that await only and exclusively works in functions that are themself asyncronous.Answered | 13 Replies | 11148 Views | Created by capripio - Thursday, January 24, 2013 3:21 PM | Last reply by James Osborne-MSFT - Tuesday, February 26, 2013 7:21 PM -
2 Votes
async await not working properly
Hello Sudip_inn, When you use asynchronous method you have to spread them as virus in order to not block UI thread.Answered | 4 Replies | 4905 Views | Created by Sudip_inn - Friday, March 9, 2018 3:07 PM | Last reply by Fei Hu - Monday, March 12, 2018 8:39 AM -
0 Votes
Multibinding converter async/await method
>is it possible use async await in the multibinding converter ?Answered | 2 Replies | 2378 Views | Created by Stefano74 - Thursday, April 21, 2016 10:38 AM | Last reply by Magnus (MM8) - Thursday, April 21, 2016 7:29 PM -
0 Votes
collection of methods to run AWAIT sequentially
foreach (var task in tasks) { await task; }; //No way to get results though...Answered | 2 Replies | 643 Views | Created by harry_777 - Tuesday, August 25, 2020 9:32 PM | Last reply by CoolDadTx - Wednesday, August 26, 2020 2:51 PM -
0 Votes
Awaiting async method from within a sync method
Task if your method has no return statement or has a return statement with no operand.Answered | 3 Replies | 480 Views | Created by gib898 - Tuesday, August 2, 2016 10:46 PM | Last reply by Hart Wang - Thursday, August 4, 2016 3:18 AM -
0 Votes
How to call awaitable method in side of Dispather.RunAsync()?
Yes, this worked well.Answered | 7 Replies | 5295 Views | Created by Jeremy_Cook - Friday, July 6, 2012 6:01 PM | Last reply by Jeremy_Cook - Tuesday, July 10, 2012 5:35 PM -
0 Votes
simple await not awaiting async
Page_Loaded_1 is not being awaited so it is fine.Answered | 7 Replies | 2039 Views | Created by Dexter Dengler - Saturday, April 27, 2013 12:28 AM | Last reply by Jesse Jiang - Thursday, May 2, 2013 2:53 AM -
2 Votes
Regarding how Async and Await works c#
So long as the async and await work asynchronously, the way they do that is to create a new thread.Answered | 11 Replies | 1787 Views | Created by Mou_kolkata - Friday, August 21, 2015 9:35 AM | Last reply by Christopher84 - Monday, August 24, 2015 1:52 PM -
2 Votes
Cannot create an async method: Task<T> is not awaitable
RefreshFormAsync(e), TaskScheduler.CurrentSynchronizationContext); } I am writing this from the top of my head.Answered | 6 Replies | 5526 Views | Created by PsilonRus - Monday, January 21, 2013 11:45 AM | Last reply by PsilonRus - Wednesday, January 23, 2013 10:32 AM -
1 Votes
Awaitable reflections
If you pass an Async Sub like that to your Foo method, the delegate that gets created by VB will be void-returning; this means that it won't be awaitable.Answered | 5 Replies | 8701 Views | Created by Perry Manole - Thursday, November 29, 2012 6:54 PM | Last reply by Perry Manole - Wednesday, December 5, 2012 1:10 PM -
8 Votes
Lambda and await.
"I was expecting that Button_Click_2 would behave as Button_Click_3 in Dave Smits example:" The difference is that - Click_2 considers its ...Answered | 8 Replies | 7228 Views | Created by Jonatan Dragon - Wednesday, November 7, 2012 12:34 PM | Last reply by Can Bilgin - Thursday, November 8, 2012 11:28 PM -
2 Votes
async , await
However we don't mark synchronous methods with any suffix, just async methods and it is always `Async`.Answered | 3 Replies | 780 Views | Created by Markus Freitag - Friday, February 8, 2019 5:04 PM | Last reply by CoolDadTx - Saturday, February 9, 2019 4:03 PM -
0 Votes
Asnyc and await keywords not working
It's working... :) Thank you very much Which one worked adding the header or commenting the condition?Answered | 9 Replies | 806 Views | Created by Brahmini - Wednesday, March 18, 2015 6:54 AM | Last reply by Fouad Roumieh - Thursday, March 19, 2015 8:58 AM -
0 Votes
async and await
Async tasks can be awaited from other async tasks, waited from synchronous methods and finally as RJP1973 mention, take the Task it self.Answered | 3 Replies | 626 Views | Created by MarcinMR - Monday, March 7, 2016 4:25 PM | Last reply by cgentsis - Monday, March 7, 2016 5:23 PM -
1 Votes
The 'await' operator can only be used within an async method.
You need to wrap the awaitable code in a method that is marked async and returns Task.Answered | 5 Replies | 21273 Views | Created by KBid - Thursday, July 5, 2018 2:16 PM | Last reply by RJP1973 - Friday, July 6, 2018 12:48 PM -
1 Votes
Awaiting WaitHandle.WaitOne
IMO your method can produce a deadlock.Answered | 9 Replies | 14207 Views | Created by bazzinga - Thursday, December 20, 2012 1:52 PM | Last reply by Igor Mikushkin - Tuesday, November 12, 2013 8:42 AM -
0 Votes
Question on Async and Await
`await` must be in an `async` method, it cannot be used for an instance field, so the first line of code must be a local variable, but if the snippet is inside of a ...Answered | 2 Replies | 1169 Views | Created by Mr. Javaman II - Tuesday, January 29, 2013 9:56 PM | Last reply by Mr. Javaman II - Wednesday, January 30, 2013 12:31 AM -
0 Votes
Async Await
A very good MSDN documentation for you to better understand async and await: Asynchronous Programming with Async and Await (C# and Visual Basic) We are ...Answered | 2 Replies | 857 Views | Created by Joaquinmm - Monday, July 7, 2014 10:09 PM | Last reply by Caillen - Wednesday, July 9, 2014 7:36 AM -
1 Votes
Await Multiple
List<int> [] results = await Task.WhenAll(GetList1Async(), GetList2Async()); Here, results[0] will be the resulting list from GetList1Async, and ...Answered | 2 Replies | 13800 Views | Created by Michael Bird from Sharp Dudes - Wednesday, October 5, 2011 6:35 PM | Last reply by Stephen Toub - MSFT - Wednesday, October 5, 2011 8:11 PM -
2 Votes
async and await in c#
Any method that returns Task can be awaited.Answered | 3 Replies | 635 Views | Created by ankurastogi - Tuesday, May 30, 2017 2:56 PM | Last reply by Ehsan Sajjad - Wednesday, May 31, 2017 1:30 PM - Items 1 to 20 of 2292334 Next ›
No announcements