Skip to content

Commit

Permalink
Correctly forward var bindings on structured scope submit methods
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Oct 21, 2023
1 parent c3e5483 commit 52a37f9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/promesa/exec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,15 @@

pt/IExecutor
(-exec! [it task]
(.fork ^java.util.concurrent.StructuredTaskScope it ^Callable task)
nil)
(let [task (wrap-bindings task)]
(.fork ^java.util.concurrent.StructuredTaskScope it ^Callable task)
nil))
(-run! [it task]
(.fork ^java.util.concurrent.StructuredTaskScope it ^Callable task))
(let [task (wrap-bindings task)]
(.fork ^java.util.concurrent.StructuredTaskScope it ^Callable task)))
(-submit! [it task]
(.fork ^java.util.concurrent.StructuredTaskScope it ^Callable task)))))
(let [task (wrap-bindings task)]
(.fork ^java.util.concurrent.StructuredTaskScope it ^Callable task))))))

;; #?(:clj
;; (defn managed-blocker
Expand Down

0 comments on commit 52a37f9

Please sign in to comment.