mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
khan: closer to starting threads
This commit is contained in:
parent
a247113c57
commit
30df250c7d
@ -6,7 +6,9 @@
|
||||
=> |%
|
||||
+$ move [p=duct q=(wite note gift:khan)]
|
||||
+$ note :: out request $->
|
||||
!!
|
||||
$% $: %g :: to %gall
|
||||
$>(%deal task:gall) :: full transmission
|
||||
== == ::
|
||||
+$ sign :: in response $<-
|
||||
!!
|
||||
+$ khan-state
|
||||
@ -14,6 +16,15 @@
|
||||
unix-duct=duct
|
||||
==
|
||||
--
|
||||
=>
|
||||
|%
|
||||
++ start-spider
|
||||
|= *
|
||||
!!
|
||||
++ watch-spider
|
||||
|= *
|
||||
!!
|
||||
--
|
||||
=| khan-state
|
||||
=* state -
|
||||
|= [now=@da eny=@uvJ rof=roof]
|
||||
@ -34,12 +45,21 @@
|
||||
%vega
|
||||
[~ khan-gate]
|
||||
%trim
|
||||
[~ khan-gate]
|
||||
%done
|
||||
[~ khan-gate]
|
||||
%born
|
||||
[~ khan-gate(unix-duct hen)]
|
||||
%fyrd
|
||||
=/ rid=@ta (rear (head hen))
|
||||
=/ tid=@ta
|
||||
(cat 3 'khan-fyrd--' rid)
|
||||
=/ start-moves=(list move)
|
||||
:~ (watch-spider beak.task name.task /thread-result/[tid])
|
||||
(start-spider beak.task name.task !>(data.task))
|
||||
==
|
||||
:: send to gall, sub for updates
|
||||
!!
|
||||
[start-moves khan-gate]
|
||||
==
|
||||
:: +load: migrate an old state to a new khan version
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user