|
A minor point (correction) but async/await is not threading and threading is not async/await. You can think of async/await as being Task based rather than Thread based.
This space for rent
|
|
|
|
|
Pete O'Hanlon wrote: A minor point (correction) but async/await is not threading and threading is not async/await
Agreed. It is a concurrency / asynchronous thing not really threading.
I now try to always say concurrency but I often fall back on old words.
This is also why I'm reading this chapter because the authors cover all of this.
Thanks
|
|
|
|
|
Quote: async/await is not threading and threading is not async/await.
It took me a while to understand this fact!
Get me coffee and no one gets hurt!
|
|
|
|
|
but then how the method executes asynchronously while the main thread still continues doing it's work , the async method which is being called in executed in what thread then ?
|
|
|
|
|
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.
|
|
|
|