mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
khan: basic +call, types
This commit is contained in:
parent
575ff61fa6
commit
3cf803129d
@ -2098,12 +2098,12 @@
|
||||
++ khan ^?
|
||||
|%
|
||||
+$ gift :: out result <-$
|
||||
$% [%avow ~]
|
||||
$% [%avow (each cage [term tang])] :: thread result
|
||||
==
|
||||
+$ task :: in request ->$
|
||||
$~ [%vega ~]
|
||||
$% $>(%born vane-task) :: new unix process
|
||||
[%fyrd ~]
|
||||
[%fyrd =beak name=term data=*] :: run thread v0
|
||||
$>(%trim vane-task) :: trim state
|
||||
$>(%vega vane-task) :: report upgrade
|
||||
==
|
||||
|
@ -30,7 +30,17 @@
|
||||
^- [(list move) _khan-gate]
|
||||
::
|
||||
=/ =task:khan ((harden task:khan) wrapped-task)
|
||||
[~ khan-gate]
|
||||
?- -.task
|
||||
%vega
|
||||
[~ khan-gate]
|
||||
%trim
|
||||
[~ khan-gate]
|
||||
%born
|
||||
[~ khan-gate(unix-duct hen)]
|
||||
%fyrd
|
||||
:: send to gall, sub for updates
|
||||
!!
|
||||
==
|
||||
:: +load: migrate an old state to a new khan version
|
||||
::
|
||||
++ load
|
||||
@ -50,5 +60,6 @@
|
||||
^- [(list move) _khan-gate]
|
||||
?^ dud
|
||||
~|(%khan-take-dud (mean tang.u.dud))
|
||||
:: switch on type of thing you get back, update state
|
||||
[~ khan-gate]
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user