Skip to content

Instantly share code, notes, and snippets.

@kumar88kanishk
kumar88kanishk / burgershop.clj
Last active December 17, 2024 12:13
Core.aysnc exercise
(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 []