urbit/pkg/arvo/mar/verb/event.hoon
Fang ac494a265e
verb: allow subscribing to events
This excludes, necessarily, events that don't let us emit moves.
(+on-save, +on-peek)
2020-05-08 01:46:29 +02:00

27 lines
535 B
Plaintext

/- verb
=, dejs:format
|_ =event:verb
++ grab
|%
++ noun event:verb
--
::
++ grow
|%
++ noun event
++ json
=, enjs:format
%+ frond -.event
?- -.event
%on-init ~
%on-load ~
%on-poke s+mark.event
%on-watch (path path.event)
%on-leave (path path.event)
%on-agent (pairs 'wire'^(path wire.event) 'sign'^s+sign.event ~)
%on-arvo (pairs 'wire'^(path wire.event) 'vane'^s+vane.event 'sign'^s+sign.event ~)
%on-fail s+term.event
==
--
--