Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Waiting on request to finish

edited November 2014 in Questions Posts: 1,255

Okay, I know there's a simple answer to this, and I'm simply forgetting something basic, but...

In my app, I'm making a series of calls to a web service. Like all HTTP requests, the calls are asynchronous. The trouble is, I need to hold up the program and wait on results.

Is there some nice way to tell when a thread is complete?

I'm doing
MakeARequest() which passes results to SuccessfulReturn()

But NextFunction needs to check if it got data from SuccessfulReturn, and it charges ahead before the request completes.

Should be easy, but I'm in brain lock.



Sign In or Register to comment.