|
With async/await, as also for Tasks, you have to think in terms of SynchronizationContexts instead of threads. There's an excellent overview of this concept here[^].
This space for rent
|
|
|
|
|
|
Thanks, i will give a read.
|
|
|
|
|
Does it talk about how to create an Asynchronous method using tasks?
Most information I've found about async/await is about the caller, "You mark a method as async and then use await to call asynchronous methods". I haven't been able to find a lot on how one would actually go about writing an asynchronous method to be called by await.
|
|
|
|
|
I'm just reading the Async stuff today so I paged through.
The information is very detailed about Async / Await and walks you through small detailed uses and builds upon it so they hit everything.
A large number of pages dedicated to explaining it very well.
Wearwolf wrote: I haven't been able to find a lot on how one would actually go about writing an asynchronous method to be called by await.
It looks like there are specific examples to do that also.
|
|
|
|
|
|
Blondie still going, not politically correct...
modified 9-Jan-18 10:05am.
|
|
|
|
|
I don't see your joke icon.
Get me coffee and no one gets hurt!
|
|
|
|
|
|
Get me coffee and no one gets hurt!
|
|
|
|
|
That comic strip is still around? I was reading it in the daily papers back when I was a kid...well over 35 years ago.
|
|
|
|
|
Hi All,
Major worries this am, alarm didn't go off, got out of bed late, the train I usually catch gone, the next one cancelled, following one re-timed (read late, but if re-timed they don't have to pay compensation). Being that I work in a small village outside of a city (Bristol) there is a very good train service but being a small commuter village the trains can 'skip' the stop if needed. So a train service is very good gets really bad quick...
Ooh look spammers are back!
|
|
|
|
|
I see no spammers :InnocentWhistle:
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Weird. I forgot to turn my alarm of, so of course I got up late. I wonder if this is the work of an alien presence.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
That is weiRd my alarm went off 3 times.
Don't let your mind wander too far.
It's too small to be let out alone.
|
|
|
|
|
Cant you just work from home if this happens?
|
|
|
|
|
Not really I need to use a very big & expensive bit of hardware to test against...
|
|
|
|
|
|
|
'Late' is the name of your dog, child, partner?
|
|
|
|
|
Why worry about being late? Make up for it at the other end of the day.
If you get in an hour late (+1 hour) make up by leaving an hour early (-1 hour). 1 + -1 = 0
Fixed.
Signature ready for installation. Please Reboot now.
|
|
|
|
|
Thats what I am going to do, however that means I will get home later. Also I will be on the later train that will be packed...
|
|
|
|
|
Read that again. You missed the joke
|
|
|
|
|
OK, yup missed that... +1 + -1 = 0 goes with day I'm having
|
|
|
|
|
I am in the middle of changing positions and companies; taking a week of vacation.
So... did I get up late? No.. I was up at 4:30, stoke the fire, start the coffee.
Then, meet a group for an outdoor workout session at 5:15 - aerobic exercise, running, lifted concrete blocks... back home about 6:15 to have coffee with my wife.
Good start to the day; soon, I will be cutting, splitting, stacking firewood - great way to spend vacation time!
|
|
|
|