mirror of
https://github.com/urbit/shrub.git
synced 2024-12-11 11:02:25 +03:00
graph-pull-hook: renegotiate subscriptions
This commit is contained in:
parent
13eb709fb1
commit
aa44d2e8a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user