You could use jobs:eval(query…), where you provide the query and you get back an Id for the job. You can then cancel the job using jobs:stop(id)

 

 http://docs.basex.org/wiki/Jobs_Module

 

From: BaseX-Talk <basex-talk-bounces@mailman.uni-konstanz.de> On Behalf Of Shaun Flynn
Sent: Tuesday, June 26, 2018 4:41 AM
To: BaseX <basex-talk@mailman.uni-konstanz.de>
Subject: [basex-talk] Cancelling long running query

 

Hello there,

 

I have had a look in the documentation and was wondering, is it possible to cancel a query once it has been submitted using ClientQuery/ClientSession?

 

Would calling close() on ClientQuery do that?

 

Shaun