2007/7/2, Jos van den Oever &lt;<a href="mailto:jvdoever@gmail.com">jvdoever@gmail.com</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/6/30, Mikkel Kamstrup Erlandsen &lt;<a href="mailto:mikkel.kamstrup@gmail.com">mikkel.kamstrup@gmail.com</a>&gt;:<br>&gt; &gt; The API change I shout about in the subject line is the fact that the<br>&gt; method StartSearch have been added so that you now have to issue this call
<br>&gt; to start the search created by NewSearch.<br><br>GetHits (in s search, in i num, out aav hits)<br><br>Why is there no offset in this function? This is also a race issue. If<br>i call GetHits() twice, I do not know which request arrives first and
<br>so the order of the hits may be wrong.</blockquote><div><br>Sorry for the late reply I was on vacation :-)<br><br>I can&#39;t see how an offset would solve that issue. As far as I can see it is inherent in any async api where you have to iterate over a set with async calls.
<br><br>It is the intent that the method should be regarded as read() function. You just make your reply handler issue another GetHits if appropriate. So yes you can code yourself into a race condition (that any async api has), but it is easy to avoid.
<br><br>Cheers,<br>Mikkel<br></div><br></div><br>