rexbradford

Queries being completed out of order sometimes

Discussion created by rexbradford on Jan 27, 2012
Latest reply on Jan 27, 2012 by rexbradford
In my app it is possible to issue queries on the same layer in rapid enough succession that the issue of out-of-order execution of the response is an issue.  Is there any way of tagging the queries so they can be identified in the callback?  I saw on the IOS thread that an NSOperation associated with each query can be used for this purpose.  Is there any mechanism in the Javascript toolkit for identifying what query invoked the callback?

The only thing I can think to do is to associated each query with a different (identical except that the function itself serves as an id) callback function, but that seems pretty lame.

Thanks,

Rex Bradford
Direct Relief International

Outcomes