No announcements
Found 1770461 threads
-
0 Votes
Adding await to this Dispatcher.RunAsync cause error
When try to run this code with this syntax: private async void ShowConnectionStatus(InternetConnectionType ...Answered | 3 Replies | 1052 Views | Created by FireDance - Wednesday, December 11, 2013 5:27 AM | Last reply by Rob Caplan [MSFT] - Wednesday, December 11, 2013 10:02 PM -
0 Votes
How to call awaitable method in side of Dispather.RunAsync()?
Hi ForInfo- Great suggestion, I did not notice the placement of the deferral completion inside the Dispatcher.RunAsync().Answered | 7 Replies | 5403 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
It is only using await keyword.Answered | 7 Replies | 2307 Views | Created by Dexter Dengler - Saturday, April 27, 2013 12:28 AM | Last reply by Jesse Jiang - Thursday, May 2, 2013 2:53 AM -
1 Votes
await SuspensionManager.RestoreAsync async error
What method have you put the "await SuspensionManager.RestoreAsync()" into?Answered | 1 Replies | 1034 Views | Created by bionicman08 - Tuesday, March 24, 2015 3:38 PM | Last reply by Oliver Ulm - Tuesday, March 24, 2015 3:49 PM -
1 Votes
Error using await function
Task<string> resultTask = DoThisAsync("The big brown fox"); var myString = await ...Answered | 5 Replies | 3716 Views | Created by Craig Muckleston (MCPD, MCTS) - Friday, August 31, 2012 11:23 AM | Last reply by Craig Muckleston (MCPD, MCTS) - Tuesday, September 4, 2012 8:15 AM -
0 Votes
await mediaCaptureMgr.StopRecordAsync() causes a 0xC00D4A44 exception on simulator
Hi, The code error is MF_E_SINK_NO_SAMPLES_PROCESSED.Answered | 2 Replies | 1349 Views | Created by Astro-Boy - Thursday, April 11, 2013 7:08 AM | Last reply by Jesse Jiang - Monday, April 15, 2013 6:15 AM -
0 Votes
await Dispatcher.RunAsync..WAIT!
{ TaskCompletitionSource<Object> task = new TaskCompletitionSource<Object>(); Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, ...Answered | 9 Replies | 9627 Views | Created by Confuset - Friday, December 7, 2012 11:39 AM | Last reply by Confuset - Friday, December 14, 2012 10:25 AM -
3 Votes
Win RT : Awaiting the Dispatcher.RunAsync()
Depending on your specific calling pattern you could also await the Task, but that would allow your function's caller to continue without blocking.Answered | 5 Replies | 19144 Views | Created by Ososky - Tuesday, May 22, 2012 5:50 PM | Last reply by ForInfo - Thursday, June 21, 2012 5:45 AM -
0 Votes
await Task from Dispatcher.RunAsync(..)
{ NotifyUser("AccountAdded"); NotifyUser("Account Id " + args.NetworkAccountId); await ConnectAccountsAsync(); // This line here is what I can't ...Answered | 1 Replies | 7968 Views | Created by ddonovan_98 - Monday, September 17, 2012 11:31 PM | Last reply by ddonovan_98 - Monday, September 17, 2012 11:42 PM -
2 Votes
async , await
If you never wait on a task then any errors it throws will be silently ignored which can cause problems.Answered | 3 Replies | 1134 Views | Created by Markus Freitag - Friday, February 8, 2019 5:04 PM | Last reply by CoolDadTx - Saturday, February 9, 2019 4:03 PM -
2 Votes
async and await in c#
Any method that returns Task can be awaited.Answered | 3 Replies | 956 Views | Created by ankurastogi - Tuesday, May 30, 2017 2:56 PM | Last reply by Ehsan Sajjad - Wednesday, May 31, 2017 1:30 PM -
8 Votes
Lambda and await.
I was trying to solve problem caused by this misunderstanding for hours.Answered | 8 Replies | 7557 Views | Created by Jonatan Dragon - Wednesday, November 7, 2012 12:34 PM | Last reply by Can Bilgin - Thursday, November 8, 2012 11:28 PM -
0 Votes
a question about 'await' and exceptions
I thought that the manual validation exception is thrown directly to the caller (as what is done for usage errors).Answered | 2 Replies | 3913 Views | Created by Mansoor Omrani - Friday, March 16, 2012 7:24 PM | Last reply by Mansoor Omrani - Saturday, March 17, 2012 8:32 AM -
3 Votes
problem with understanding await keyword
So, there's a warning because you're likely not doing what you think you're doing if you're missing an await, but as there's still meaning to using the async keyword ...Answered | 6 Replies | 6160 Views | Created by Bo,Chen - Thursday, December 6, 2012 3:32 PM | Last reply by Stephen Toub - MSFT - Friday, December 14, 2012 4:41 PM -
2 Votes
Why not "await return" ?
With iterators, yield return is, at that point, effectively returning from the method and adding the value into the IEnumerable<T> you're implementing.Answered | 6 Replies | 8012 Views | Created by Allan Lindqvist - Wednesday, April 13, 2011 9:07 PM | Last reply by Allan Lindqvist - Thursday, April 14, 2011 9:04 PM -
1 Votes
Have an async/await block
I also have to guarantee that no other code executes on the calling thread while I am awaiting this method.Answered | 3 Replies | 4620 Views | Created by Perry Manole - Tuesday, December 25, 2012 1:25 PM | Last reply by svick - Tuesday, January 1, 2013 3:24 PM -
2 Votes
Async Method: dispatcher.RunAsync -- Error
Since you don't do anything after the dispatcher call you can ignore the warning and remove the await.Answered | 4 Replies | 2385 Views | Created by sara_yy - Sunday, January 5, 2014 6:34 PM | Last reply by Dave Smits - Sunday, January 5, 2014 7:06 PM -
1 Votes
Awaitable reflections
Dim result as Boolean = Await Somthing() ea.Cancel = result End Sub) They may or may not need to use an Await in their lambda.Answered | 5 Replies | 9164 Views | Created by Perry Manole - Thursday, November 29, 2012 6:54 PM | Last reply by Perry Manole - Wednesday, December 5, 2012 1:10 PM -
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 | 965 Views | Created by MarcinMR - Monday, March 7, 2016 4:25 PM | Last reply by cgentsis - Monday, March 7, 2016 5:23 PM -
0 Votes
async/await and Task.WaitAll() WTF?
you implicitly do that when using 'await Task.Factory.StartNew(..)'.Answered | 13 Replies | 23334 Views | Created by Confuset - Friday, November 30, 2012 12:47 PM | Last reply by Confuset - Friday, November 30, 2012 5:56 PM - Items 1 to 20 of 1770461 Next ›
No announcements