graph-pull-hook: renegotiate subscriptions

This commit is contained in:
Liam Fitzgerald 2021-09-30 18:52:21 +10:00
parent 13eb709fb1
commit aa44d2e8a1

View File

@ -12,6 +12,11 @@
3 3
%.n
==
+$ state-nul ~
+$ state-0 [%0 ~]
+$ versioned-state
$% state-0
==
--
::
%- agent:dbug
@ -19,15 +24,25 @@
^- agent:gall
%- (agent:pull-hook config)
^- (pull-hook:pull-hook config)
=| state-0
=* state -
|_ =bowl:gall
+* this .
def ~(. (default-agent this %|) bowl)
dep ~(. (default:pull-hook this config) bowl)
gra ~(. graph bowl)
io ~(. agentio bowl)
pass pass:io
::
++ on-init on-init:def
++ on-save !>(~)
++ on-load on-load:def
++ on-save !>(state)
++ on-load
|= =vase
?: =(q.vase ~)
:_ this
(poke-self:pass kick+!>(%kick))^~
`this
::
++ on-poke on-poke:def
++ on-peek on-peek:def
++ on-arvo on-arvo:def