mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 21:12:56 +03:00
thread-watch-hook: add +on-init to watch graph invitatory, and remove ~&
This commit is contained in:
parent
65291863a0
commit
06062757db
@ -31,7 +31,26 @@
|
|||||||
+* this .
|
+* this .
|
||||||
def ~(. (default-agent this %|) bowl)
|
def ~(. (default-agent this %|) bowl)
|
||||||
::
|
::
|
||||||
++ on-init on-init:def
|
++ on-init
|
||||||
|
|^ ^- (quip card _this)
|
||||||
|
:_ this
|
||||||
|
:~ (act /inv-acc-gra [%watch /invitatory/graph %invite-accepted-graph])
|
||||||
|
==
|
||||||
|
::
|
||||||
|
++ act
|
||||||
|
|= [=wire =action:sur]
|
||||||
|
^- card
|
||||||
|
:* %pass
|
||||||
|
wire
|
||||||
|
%agent
|
||||||
|
[our.bowl %thread-watch-hook]
|
||||||
|
%poke
|
||||||
|
%thread-watch-action
|
||||||
|
!> ^- action:sur
|
||||||
|
action
|
||||||
|
==
|
||||||
|
--
|
||||||
|
::
|
||||||
++ on-save !>(state)
|
++ on-save !>(state)
|
||||||
++ on-load
|
++ on-load
|
||||||
|= old-vase=vase
|
|= old-vase=vase
|
||||||
@ -81,7 +100,6 @@
|
|||||||
++ on-agent
|
++ on-agent
|
||||||
|= [=wire =sign:agent:gall]
|
|= [=wire =sign:agent:gall]
|
||||||
^- (quip card _this)
|
^- (quip card _this)
|
||||||
~& [wire sign]
|
|
||||||
?- -.sign
|
?- -.sign
|
||||||
%kick
|
%kick
|
||||||
?+ wire (on-agent:def wire sign)
|
?+ wire (on-agent:def wire sign)
|
||||||
@ -103,7 +121,6 @@
|
|||||||
%poke-ack
|
%poke-ack
|
||||||
?. ?=([%thread-start @ @ ~] wire)
|
?. ?=([%thread-start @ @ ~] wire)
|
||||||
(on-agent:def wire sign)
|
(on-agent:def wire sign)
|
||||||
~& sign
|
|
||||||
?~ p.sign [~ this]
|
?~ p.sign [~ this]
|
||||||
=/ =time (slav %da i.t.wire)
|
=/ =time (slav %da i.t.wire)
|
||||||
=/ tid (slav %uv i.t.t.wire)
|
=/ tid (slav %uv i.t.t.wire)
|
||||||
@ -141,7 +158,6 @@
|
|||||||
[~ this]
|
[~ this]
|
||||||
=/ =time (slav %da i.t.wire)
|
=/ =time (slav %da i.t.wire)
|
||||||
=/ =observer:sur (~(got by observers) time)
|
=/ =observer:sur (~(got by observers) time)
|
||||||
~& [time observer]
|
|
||||||
:_ this(observers (~(del by observers) time))
|
:_ this(observers (~(del by observers) time))
|
||||||
:_ ~
|
:_ ~
|
||||||
:* %pass
|
:* %pass
|
||||||
@ -156,7 +172,6 @@
|
|||||||
=/ =time (slav %da i.t.wire)
|
=/ =time (slav %da i.t.wire)
|
||||||
=/ =observer:sur (~(got by observers) time)
|
=/ =observer:sur (~(got by observers) time)
|
||||||
=/ tid (scot %uv (sham eny.bowl))
|
=/ tid (scot %uv (sham eny.bowl))
|
||||||
~& [time observer tid]
|
|
||||||
:_ this
|
:_ this
|
||||||
:~ :* %pass
|
:~ :* %pass
|
||||||
[%thread-start i.t.wire tid ~]
|
[%thread-start i.t.wire tid ~]
|
||||||
|
Loading…
Reference in New Issue
Block a user