Aklakan commented on code in PR #3027: URL: https://github.com/apache/jena/pull/3027#discussion_r2068442278
########## jena-arq/src/main/java/org/apache/jena/sparql/util/Context.java: ########## @@ -387,6 +389,11 @@ public void clear() { context.clear(); } + /** Atomic compute. */ + public <V> Object compute(Symbol key, BiFunction<Symbol, Object, V> remappingFunction) { Review Comment: It is used in the module `jena-fuseki-mod-geosparql` from `SpatialIndexComputeService.scheduleTask`. This method uses `Context.compute` to atomically check for a currently running indexing task and creates one if none exists. There can only be a single indexing task per dataset, and this task can be cancelled. -- 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: pr-unsubscr...@jena.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org For additional commands, e-mail: pr-h...@jena.apache.org