Skip to content

Commit 2e7fa95

Browse files
committed
removing unused fns
1 parent b158c77 commit 2e7fa95

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/main/clojure/clojure/core/async.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ return nil for unexpected contexts."
354354
(deref p))))
355355

356356
(defn alts!
357-
"Completes at most one of several channel operations. Must be called
357+
"Completes at most one of several channel operations. Must be called
358358
inside a (go ...) block. ports is a vector of channel endpoints,
359359
which can be either a channel to take from or a vector of
360360
[channel-to-put-to val-to-put], in any combination. Takes will be

src/main/clojure/clojure/core/async/impl/dispatch.clj

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@
7979
(catch ClassNotFoundException _
8080
false)))
8181

82-
(def ^:private virtual-thread?
83-
(if virtual-threads-available?
84-
(eval `(fn [^Thread t#] (~'.isVirtual t#)))
85-
(constantly false)))
86-
87-
(defn in-vthread? []
88-
(and virtual-threads-available?
89-
(virtual-thread? (Thread/currentThread))))
90-
9182
(defn- make-io-executor
9283
[]
9384
(if virtual-threads-available?

0 commit comments

Comments
 (0)