L
Larry Bud
With the help of some of you guys, we're making progress here.
I have a webservice that outputs a file which another apps picks up.
I write a row to SQL that has some status flags of this output file.
The other apps processes this file, and will set the status in one of
the columns to true when the output file IT created is ready.
So in my webservice, I want to check every, oh, maybe 1/2 sec to see
when the processing app is done. However, I want to time out after
about 10 seconds.
What's the best way to do a loop that will execute a function, but
only execute this function until it returns TRUE or the elapsed time
is done? I can obviously take current time, but is there other timer
functions that I should use?
I have a webservice that outputs a file which another apps picks up.
I write a row to SQL that has some status flags of this output file.
The other apps processes this file, and will set the status in one of
the columns to true when the output file IT created is ready.
So in my webservice, I want to check every, oh, maybe 1/2 sec to see
when the processing app is done. However, I want to time out after
about 10 seconds.
What's the best way to do a loop that will execute a function, but
only execute this function until it returns TRUE or the elapsed time
is done? I can obviously take current time, but is there other timer
functions that I should use?