We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a deadlock:
(-> (process ["cat"] {#_#_:out (io/file "/tmp/foo.csv") :in (io/file "/Users/borkdude/Downloads/1mb-test_csv.csv")}) check)
since the stream can't write anywhere, it's waiting before it can exit.
This works:
user=> (def csv (with-out-str (-> (process ["cat"] {:out *out* :in (io/file "/Users/borkdude/Downloads/1mb-test_csv.csv")}) check))) #'user/csv user=> (count csv) 1000448
This also works:
(def sw (java.io.StringWriter.)) (-> (process ["cat"] {:in (slurp "https://datahub.io/datahq/1mb-test/r/1mb-test.csv") :out sw}) check) (count (str sw)) ;; 1043005
We implemented :out :string to make this easier:
:out :string
(count (-> (process ["cat"] {:in (slurp "https://datahub.io/datahq/1mb-test/r/1mb-test.csv") :out :string}) check :out)) ;; 1043005
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a deadlock:
since the stream can't write anywhere, it's waiting before it can exit.
This works:
This also works:
We implemented
:out :string
to make this easier:The text was updated successfully, but these errors were encountered: