Aklakan commented on PR #2395: URL: https://github.com/apache/jena/pull/2395#issuecomment-2058981646
> So I'd say that the correct behavior Hm, "correctness" is the wrong wording - its an API contract question. The query exec methods that do not return an iterator are expected to fail right away (because they'll internally touch the iterator). However, if an iterator is returned I am uncertain whether the creation of the iterator should already fail due to cancellation - or whether the place to check for cancellation of an iterator is solely on next() (IIRC hasNext returns true even if cancelled, but picking the item up with next() will raise the exception.). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
