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.

2
  • Not sure i want to take the polling approach, on a system such as ours, if the timeout is too short and one or more of the tasks are still running then the results could be inconsistent. If the timeout is too long then that could lead to performance issues especially since these tasks are hitting an extrnal datasource. Commented Jul 9, 2010 at 16:50
  • 1
    poll waits up to a time delay, but if data is available sooner it immediately returns that data. So you're essentially able to check the "done yet?" flag occasionally but respond to data immediately. Commented Jul 5, 2012 at 17:01