Created
December 19, 2015 19:21
-
-
Save MichaelDrogalis/64d6a80992f4015511ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(->> {:onyx.core/batch [{:x 1}]} | |
(t/apply-fn (λ [x] {:y 1}) false) | |
:onyx.core/results | |
(t/persistent-results!) | |
(clojure.pprint/pprint)) | |
;; => | |
;; {:tree | |
;; ({:root {:x 1}, :leaves ({:x 1, :message {:y 1}, :ack-val nil})}), | |
;; :acks [], | |
;; :segments [], | |
;; :retries []} | |
(->> {:onyx.core/batch [{:message 1}]} | |
(t/apply-fn (λ [x] {:message 42}) false) | |
:onyx.core/results | |
(t/persistent-results!) | |
(clojure.pprint/pprint)) | |
;; => | |
;; {:tree | |
;; ({:root {:message 1}, | |
;; :leaves ({:message {:message 42}, :ack-val nil})}), | |
;; :acks [], | |
;; :segments [], | |
;; :retries []} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment