Skip to content

Instantly share code, notes, and snippets.

View alanmarazzi's full-sized avatar

Alan alanmarazzi

View GitHub Profile
@alanmarazzi
alanmarazzi / pipeline.clj
Created October 26, 2020 11:54 — forked from JacobNinja/pipeline.clj
Clojure core.async pipeline example
(require '[clojure.core.async :as async]
'[clj-http.client :as client]
'[clojure.data.json :as json])
(def concurrency 5)
(let [in (async/chan)
out (async/chan)
request-handler (fn [url out*]
(async/go
(ns defwrapper
(:require [clojure.string :as str]))
(set! *warn-on-reflection* true)
(defn class-methods [^Class class]
(seq (.getMethods class)))
(defn constructors [^Class klazz]
(.getDeclaredConstructors klazz))