A lot of internals as I tried to do a switch based logic
This commit is contained in:
+3
-3
@@ -16,9 +16,9 @@ spec = pure ()
|
||||
-- putStrLn "Before the delay"
|
||||
-- threadDelay 100000 -- let the controller dup its inbound channel
|
||||
-- putStrLn "After the delay"
|
||||
-- atomically $ writeTChan (busInbound bus) (doorEvent "on") -- initial value: no change event
|
||||
-- atomically $ writeTChan (busInbound bus) (doorEvent "off") -- door closes: lights on
|
||||
-- atomically $ writeTChan (busInbound bus) (doorEvent "on") -- door opens: lights off
|
||||
-- atomically $ writeTChan (busInbound bus) (Event (doorEvent "on")) -- initial value: no change event
|
||||
-- atomically $ writeTChan (busInbound bus) (Event (doorEvent "off")) -- door closes: lights on
|
||||
-- atomically $ writeTChan (busInbound bus) (Event (doorEvent "on")) -- door opens: lights off
|
||||
-- putStrLn "After the writes"
|
||||
-- Right (_, svc1) <- boundedRead (busOutbound bus)
|
||||
-- Right (_, svc2) <- boundedRead (busOutbound bus)
|
||||
|
||||
Reference in New Issue
Block a user