Skip to content

Commit

Permalink
Remove reset-executor! from re-frame.interop
Browse files Browse the repository at this point in the history
  • Loading branch information
lowecg committed Dec 2, 2024
1 parent c4a9d7d commit 078ebc1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/re_frame/interop.clj
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@
[]
true)

(defn reset-executor!
"Creates a fresh single-threaded executor when the current one is shutdown. Essential for environments like AWS Lambda
where the executor must be recycled between function invocations."
[]
(when (and executor (.isShutdown ^ExecutorService executor))
(alter-var-root #'executor
(fn [_] (Executors/newSingleThreadExecutor)))))

(defn shutdown-executor!
"Cleanly terminates the executor service and waits for pending tasks to complete.
Required when running from CLI, tests or Lambda functions to prevent the JVM from hanging,
Expand Down

0 comments on commit 078ebc1

Please sign in to comment.