|
Why did they even used M1? Caller is not really that big of a word.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|
Did you forget that you were reading MSDN?
|
|
|
|
|
No.
M1 uses await when it calls some other async method, and hence returns "immediately" allowing M1's caller to resume from the call site.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
ahmed zahmed wrote: allowing M1's caller
The caller (say, M1)
OK, you tell me. Is M1 the caller or the callee?
If I bend my mind enough, I think I see what you're saying.
Marc
|
|
|
|
|
It's both the caller and the callee. In the first sentence, it's the caller (of the async method). In the next sentence it's the callee.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
Ok let's work through this. This is the way I understand what is being said. Note though that I am no "async" expert. In fact, I've never used the construct in C#. So, take it for what it's worth.
An async method provides a convenient way to do potentially long-running work without blocking the caller's thread.
This seems straightfoward.
The caller (say, M1) of an async method can resume its work without waiting for the async method to finish.
"The caller (say, M1)" -->
M1()
{
await asyncMethodName();
}
However, M1 typically uses the await keyword so that it returns immediately, allowing M1’s caller to resume work or return to the thread’s synchronization context (or message pump)
SomeOtherMethod()
{
M1();
M2();
}
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
I want to buy a tablet where different people can log in and access individual email accounts. I know Apple is out, what about Android? Or is a surface for me?
Thanks.
Regards,
Rob Philpott.
|
|
|
|
|
|
Snap!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Android does support multiple users: I haven't tried it (because Herself is scared stiff to go near my Nexus 7, thankfully) but this explains the procedure: http://www.dummies.com/how-to/content/how-to-add-another-user-to-your-android-tablet.html[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I think that Android devices are mainly to surf the web, check social media, check emails and play games. As soon as you want to get more work done (Powerpoint, Word, Excel and so on) a Surface tablet would be the best choice, since it is relatively close to a full-blown Windows OS.
I gots a Surface, and I am really happy with it.
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
I've really enjoyed my Surface Pro 2.
|
|
|
|
|
Ditto. And my Surface Pro 2 has pretty good battery life, depending on what you're doing, of course.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
I just got up and haven't had coffee yet and I had a double take at the subject line I read;
tablet with multiple accents
coffeeeeeeeee
|
|
|
|
|
Goooood mooorning over there
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
Ok I'm awake now and I see the error of my ways and know what to do from now on;
Open eyes before sitting down in front of computer.
|
|
|
|
|
After much jiggery pokery with the video card settings, I eventually managed to get the Oculus Rift working consistently last night.
Today, Sasha, my youngest (6), had a go of the RiftCoaster demo......http://www.youtube.com/watch?v=c34VL0_9K-4&[^]
She was quite happy to go round and round, me on the other hand was really starting to get a little bit disorientated after a couple of runs.
Even for the relatively low quality, you do get totally immersed in the content.
|
|
|
|
|
I love her reaction!
But my only problem with them is the same as all the other VR headsets that have tried and failed: you don't half look like a pillock wearing them...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: you don't half look like a pillock wearing them...
That is a downside of a lot of things, not just VR stuff. Take Hardhats, safety glasses/goggles or even cycling helmets!
Nothing can beat Crocs though!
|
|
|
|
|
DaveAuld wrote: cycling helmets Let's see.
Look like a pillock wearing a cycling helmet, or feel like one because my daughter has to feed her brain-injured father, change his diaper, and so on and so forth?
Decisions, decisions.
Software Zen: delete this;
|
|
|
|
|
I never said it was an excuse not to wear them!
Although I'm sure there are many millions who do...
modified 25-Jan-14 10:45am.
|
|
|
|
|
Just came across this[^]!
Well fads they come and fads they go.
And God I love that rock and roll!
Well the point was fast but it was too blunt to miss.
Life handed us a paycheck, we said, "We worked harder than this!"
|
|
|
|
|
|
...or are the generation that are coming though being taught not to think?
I'm increasingly noticing in QA that (not only is the standard of questions still dropping) but the thinking element of working with answers is getting less.
For example, a question asking how to remove the spaces between numbers without removing them at the start or end of the string. Understandably, String.Replace and String.Trim don't work. So I suggested a Regex, using his example as an input:
string input = " 2365 2365 ";
string output = Regex.Replace(input, @"(?<=\d+)\s+(?=\d+)", "");
What surprised me was getting a response saying that it didn't work because I had hard coded the string.
Now, you, I, everyone I know would look at the code above and see an example of the input to show where it goes in the regex - wouldn't you? I can't think that anyone who has got far enough to realise that Replace and Trim don't do what he wants, and use Google to find us here should have a problem with using the example to create exactly the code they need. OK, the Regex itself may be a little impenetrable - they do tend to be - but the code around it should be self explanatory, shouldn't it?
Now, I don't want anyone rushing off and downvoting or insulting the OP - hence no link to the question - but I can't help thinking that the next generation as a rule are just not thinking, even when given a solution that needs a tiny bit of input.
Is it just me? Am I getting too old for this? Or is anyone else noticing as well?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: Or is anyone else noticing as well? Well yes, but years ago. It's not such a recent development.
It happened a couple of times, probably 8-9 years ago on an entirely different forum, that I would leave something named "input" or "n" or "array" or something undefined, and people would complain that it didn't compile. It happened quite regularly, actually.
But maybe it's more prevalent now?
|
|
|
|
|