urbit/pkg/arvo/app/clock.hoon

39 lines
701 B
Plaintext
Raw Normal View History

:: clock: deprecated, should be removed
::
2020-04-01 23:26:07 +03:00
/+ *server, default-agent, verb, dbug
=, format
::
|%
::
+$ card card:agent:gall
+$ versioned-state
$% state-zero
==
+$ state-zero [%0 data=json]
--
2019-11-27 01:56:20 +03:00
%+ verb |
2020-04-01 23:26:07 +03:00
%- agent:dbug
=| state-zero
=* state -
2019-11-19 07:36:21 +03:00
^- agent:gall
|_ =bowl:gall
2019-11-09 23:22:59 +03:00
+* this .
def ~(. (default-agent this %|) bowl)
::
++ on-init on-init:def
++ on-save !>(%3)
++ on-load
|= old-state=vase
^- (quip card _this)
2019-11-09 23:22:59 +03:00
:_ this
[%pass / %arvo %e %disconnect [~ /'~clock']]~
::
++ on-poke on-poke:def
++ on-watch on-watch:def
++ on-leave on-leave:def
++ on-peek on-peek:def
++ on-agent on-agent:def
++ on-arvo on-arvo:def
++ on-fail on-fail:def
--