Make core.async.impl.protocols namespace reachable from within bb

This commit is contained in:
Michiel Borkent 2020-02-04 12:42:05 +01:00
parent f588319ac1
commit d3f1b05102
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,7 @@
(ns babashka.impl.async
{:no-doc true}
(:require [clojure.core.async :as async]))
(:require [clojure.core.async :as async]
[clojure.core.async.impl.protocols :as protocols]))
(defn thread
[_ _ & body]
@ -66,3 +67,5 @@
'untap async/untap
'untap-all async/untap-all})
(def async-protocols-namespace
{'ReadPort protocols/ReadPort})

View file

@ -1,7 +1,7 @@
(ns babashka.main
{:no-doc true}
(:require
[babashka.impl.async :refer [async-namespace]]
[babashka.impl.async :refer [async-namespace async-protocols-namespace]]
[babashka.impl.cheshire :refer [cheshire-core-namespace]]
[babashka.impl.classes :as classes]
[babashka.impl.classpath :as cp]
@ -252,6 +252,7 @@ Everything after that is bound to *command-line-args*."))
'babashka.signal {'pipe-signal-received? pipe-signal-received?}
'clojure.java.io io-namespace
'clojure.core.async async-namespace
'clojure.core.async.impl.protocols async-protocols-namespace
'clojure.data.csv csv/csv-namespace
'cheshire.core cheshire-core-namespace
'clojure.stacktrace stacktrace-namespace