Skip to content

Instantly share code, notes, and snippets.

View stuartc's full-sized avatar

Stuart Corbishley stuartc

View GitHub Profile
@stuartc
stuartc / core.cljs
Created November 9, 2018 07:09
Clojurescript child_process with core.async
(ns testing.core
(:require-macros [cljs.core.async.macros :refer [go alt!]])
(:require [cljs.core.async :refer [<! take! chan close! put! go-loop >!] :as async])
(:require ["child_process" :refer [spawn]]))
(defn done-message? [message]
(and
(vector? message)
(= (message 0) :done)))