Hoon101/201/week4/egg.hoon

19 lines
318 B
Plaintext
Raw Normal View History

2019-10-15 18:04:52 -04:00
|%
+$ effect (pair bone syscall)
+$ syscall [%wait path @da]
--
|_ [bowl:gall ~]
++ poke-noun
|= t=@da
?: (lth t now)
!!
^+ [*(list effect) +>.$]
:_ +>.$ :_ ~
[ost %wait /egg-timer t]
++ wake
|= [=wire error=(unit tang)]
^+ [*(list effect) +>.$]
~& "Timer went off!"
[~ +>.$]
--