No announcements
Found 2465798 threads
-
0 Votes
'await' continuation: AttachedToParent?
The parent/child functionality not only makes certain patterns easier to code, it also has first class support in the debugger.Answered | 4 Replies | 6189 Views | Created by Glenn Slayden - Thursday, November 18, 2010 2:41 AM | Last reply by Stephen Toub - MSFT - Tuesday, February 15, 2011 5:11 AM -
0 Votes
Unwrap and ContinueWith - await on the proxy task or the continuation?
I don't think either of them is preferred, that depends on what you actually want: whether you want to wait for the continuation to finish or not.Answered | 1 Replies | 4953 Views | Created by Eric99929 - Tuesday, June 19, 2012 4:10 AM | Last reply by svick - Tuesday, June 19, 2012 9:17 AM -
4 Votes
Different behavior of "await Task.Delay(200)" on Window.Closing and Button.Click events
When you await a method, the control returns to the caller of the method and this means that the window is shut down before your async method has completed in this ...Answered | 9 Replies | 4472 Views | Created by Jon 123 - Thursday, January 28, 2016 11:58 AM | Last reply by Jon 123 - Monday, February 1, 2016 11:12 AM -
0 Votes
simple await not awaiting async
Page_Loaded_1 is not being awaited so it is fine.Answered | 7 Replies | 2214 Views | Created by Dexter Dengler - Saturday, April 27, 2013 12:28 AM | Last reply by Jesse Jiang - Thursday, May 2, 2013 2:53 AM -
0 Votes
Can I wait for file to load before continuing?
If openFile IsNot Nothing Then fileContent = Await FileIO.ReadTextAsync(openFile) //fileContent will NOT be assigned until read fully ...Answered | 10 Replies | 2405 Views | Created by Doctorrandom - Friday, October 5, 2012 1:04 AM | Last reply by Doctorrandom - Wednesday, October 10, 2012 11:02 PM -
1 Votes
Async, Await, Tasks, and Returns...
await is an indicator that the calling thread can continue while the calling method is awaiting the completion of the awaited Task.Answered | 7 Replies | 1869 Views | Created by JaedenRuiner - Wednesday, October 30, 2019 5:56 PM | Last reply by JaedenRuiner - Thursday, November 14, 2019 5:57 PM -
0 Votes
Await an ActionBlock becoming idle
But then again - should the user resume the process before that ever happens, I would ignore the event (which may now only be fired later), and continue on my ...Answered | 2 Replies | 7959 Views | Created by Omer Raviv - Saturday, February 5, 2011 7:58 PM | Last reply by Omer Raviv - Friday, February 11, 2011 12:31 AM -
0 Votes
Problem with async/await, Excel events in Excel Application Level Add-in
After awaited operation completed the control is not returned to previous execution context.Answered | 1 Replies | 2677 Views | Created by MaxSinev - Wednesday, September 30, 2015 11:31 AM | Last reply by Fei Xue - Friday, October 2, 2015 2:55 AM -
0 Votes
async/await and Task.WaitAll() WTF?
with this change the code runs as expected.Answered | 13 Replies | 23097 Views | Created by Confuset - Friday, November 30, 2012 12:47 PM | Last reply by Confuset - Friday, November 30, 2012 5:56 PM -
0 Votes
Question on Async and Await
I didn't type in the code as I remembered reading it and didn't have the book with me today.Answered | 2 Replies | 1366 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
await and Task.Run
If you're familiar with the Task type, then using await is similar to accessing Result, in that it waits for the Task to complete and then it returns its result.Answered | 2 Replies | 16220 Views | Created by Frédo - Friday, November 2, 2012 9:47 AM | Last reply by svick - Sunday, November 4, 2012 12:24 AM -
0 Votes
Event is raising again before compleated code?
Hi, You can mark the whole method as synchronous (it will run one instance at a ...Answered | 2 Replies | 885 Views | Created by asafgo - Wednesday, June 19, 2013 10:09 PM | Last reply by asafgo - Thursday, June 20, 2013 9:18 PM -
0 Votes
Await and Canceled Task
What's happening is that the OperationCanceledException is getting thrown out of async method, but because the exception is happening at a location where it was called back into as the result ...Answered | 12 Replies | 13895 Views | Created by Vlada Bodecek - Tuesday, November 2, 2010 6:22 PM | Last reply by Robert8399 - Saturday, December 4, 2010 1:00 AM -
0 Votes
How can you use Await with existing events?
However we would be right back into the spaghetti of "write once read never" asynchronous code if we used the old TCS approach for complex Async methods with multiple ...Answered | 10 Replies | 21108 Views | Created by Mark_Century - Saturday, July 16, 2011 1:52 AM | Last reply by Filip Skakun - Thursday, February 16, 2012 6:49 PM -
2 Votes
async and await in c#
The code that has this line is marked as async.Answered | 3 Replies | 843 Views | Created by ankurastogi - Tuesday, May 30, 2017 2:56 PM | Last reply by Ehsan Sajjad - Wednesday, May 31, 2017 1:30 PM -
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 | 13947 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 -
0 Votes
Right way to use Async and Await ?
That's because when the task is complete the async/await machinery takes care of running the code that's after await on the original thread, the main ...Answered | 17 Replies | 1987 Views | Created by peter clift - Thursday, November 12, 2015 10:47 PM | Last reply by Mike Danes - Tuesday, November 17, 2015 8:44 AM -
2 Votes
Regarding how Async and Await works c#
Let the thread invoke it's Completed event on the Event Queue.Answered | 11 Replies | 2014 Views | Created by Mou_kolkata - Friday, August 21, 2015 9:35 AM | Last reply by Christopher84 - Monday, August 24, 2015 1:52 PM -
0 Votes
Memory Leak with await keyword
Nito.AsyncEx is nearly complete - code contracts and xmldocs are all in place.Answered | 5 Replies | 11424 Views | Created by Dave_123 - Monday, August 15, 2011 4:44 PM | Last reply by Stephen Cleary - Thursday, September 8, 2011 1:54 PM -
2 Votes
Can someone explain how this usage of 'async', 'Task' and 'await' works?
Instead, it causes the compiler to sign up the rest of the async method as a continuation on the awaited task.Answered | 2 Replies | 513 Views | Created by Richard.Haggard - Thursday, April 30, 2015 11:14 PM | Last reply by Fouad Roumieh - Friday, May 1, 2015 5:38 PM - Items 1 to 20 of 2465798 Next ›
No announcements