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
(ns burgershop | |
(:require [clojure.core.async :as a])) | |
;; This exercise simulates a burger shop. | |
;; Workers for a burger shop | |
;; They take one item from in channel, do some operations (put bun/split bun/etc) and put the result in next channel | |
;; Running flag for system to stop | |
(defn w1 [out running?] | |
(a/go-loop [] |