urbit/pkg/arvo/lib/hark/group-hook.hoon

35 lines
496 B
Plaintext
Raw Normal View History

2020-10-27 08:04:39 +03:00
/- sur=hark-group-hook
/+ resource
^?
=< [. sur]
=, sur
|%
++ dejs
=, dejs:format
|%
++ action
%- of
:~ listen+dejs-path:resource
ignore+dejs-path:resource
==
--
::
++ enjs
=, enjs:format
|%
++ res
(cork enjs-path:resource (lead %s))
2020-11-10 06:32:48 +03:00
::
2020-10-27 08:04:39 +03:00
++ update
|= upd=^update
%+ frond -.upd
?- -.upd
2020-11-10 06:32:48 +03:00
?(%listen %ignore) (res group.upd)
::
2020-10-27 08:04:39 +03:00
%initial
:- %a
(turn ~(tap in watching.upd) res)
==
--
--