-- Stylized FooBar service with two functions
--- if foo is called before bar, bar is blocked
service FooBar("service-id"):
foo() -> string --< long running function
func foobar(node:string, service_id:string, func_name:string) -> string:
BlockedService service_id
res <- BlockedService.foo()
res <- BlockedService.bar()