macOS ◆ xterm-kitty ◆ zsh 48 views

  1. Call wrpc:examples/foo@0.1.0/foo returning a resource
  2. Call wrpc:examples/types@0.1.0.future-string.get on resource returned in 1

WIT source:

package wrpc:examples@0.1.0;

interface types {
    resource future-string {
        get: func() -> option<string>;
    }
}

interface foo {
    use types.{future-string};
    foo: func() -> future-string;
}

More by rvolosatovs

Mooshy 01:05

by rvolosatovs

See all