Skip to content

Instantly share code, notes, and snippets.

@noisesmith
Last active January 8, 2016 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noisesmith/735429288e69c6126f9a to your computer and use it in GitHub Desktop.
Save noisesmith/735429288e69c6126f9a to your computer and use it in GitHub Desktop.
parallel builds
kingfisher.core=> (apply println "parallel builds")
p a r a l l e l b u i l d s
nil
kingfisher.core=> (dotimes [i 10] (future (apply println "parallel builds")))
pp nil
pp a aa r pra al p ll l ee ll p a br ua il ll de sl
pa ar r a lb l b uep la r ba ul il le dl s
a rp a la lr aa rl ar l a ll el l ee ll b ub iu li ld dsb s
u ui i ll dd ss
a l
i l bl ud ei ll d b us
i l el sl
db su
i l d s
kingfisher.core=> (def safe-printer (comp println #(clojure.string/join \space %&)))
#'kingfisher.core/safe-printer
kingfisher.core=> (dotimes [i 10] (future (apply safe-printer "parallel builds")))
p a r a l l e l b u i l d s
p a r a l l e l b u i l d s
p a r a l l e l b u i l d sp a r a l l e l b u i l d s
p a r a l l e l b u i l d sp a r a l l e l b u i l d sp a r a l l e l b u i l d s
nilp a r a l l e l b u i l d s
p a r a l l e l b u i l d s
p a r a l l e l b u i l d s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment