Plugins
Experimental
-- struct that we want to return from a service
data Result:
left: u32
right: u32
-- service that returns 'Result' data
service ResultGetter("getter"):
get() -> Result
-- service that can sum the result
service Adder("adder"):
sum(r: Result) -> u64
-- a function that bundles the execution of services
func getAndSum() -> u64:
result <- ResultGetter.get()
sum <- Adder.sum(result)
<- sumLast updated
Was this helpful?