On May 29, 2011, at 8:45 PM, Glenn Maynard wrote:
> Is it possible to asynchronously cancel a lookup?
No, this is not possible.
> Currently I'm running lookups from a worker thread; to cancel, I
> discard the thread, assuming it'll time out on its own eventually.
> I'd much prefer to abort the lookup properly, so the thread can be
> joined before continuing, rather than continuing to retry and time
> out. (It would also eliminate the need for yet another worker
> thread.)
A lookup will eventually time out, so what you're doing should be safe. I agree that the ability to do cancellation would be useful, but it would require some major internal changes to be possible.
Brian
|