Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Won't work because the loop will fire off all four lookupName calls, which take some time. There's no waiting at all here. Commented Jul 29, 2013 at 9:31
  • Does not work, because both retrieve and lookupName return immediately. Commented Jul 29, 2013 at 11:52
  • There is no "retrieve" in my answer. O.o Commented Jul 29, 2013 at 11:59
  • If there's no retrieve than you've missed something in my code; yet another reason why it won't work. I can't change these methods with blocks, so you can't change the code and leave it out. Commented Jul 29, 2013 at 18:33
  • I have comment in my code that a part of it goes to what you posted, replacing the for loop. And that is inside the retrieve method. If retrieve and lookupName return immediately, that is just because of your implementation of these methods. Commented Jul 30, 2013 at 10:10