diff --git a/imports.md b/imports.md index ebdfaae..6e50d1a 100644 --- a/imports.md +++ b/imports.md @@ -529,23 +529,23 @@ Soon: switch to resource incoming-value { ... } -

[method]incoming-value.incoming-value-consume-sync: func

+

[static]incoming-value.incoming-value-consume-sync: func

Params
Return values
-

[method]incoming-value.incoming-value-consume-async: func

+

[static]incoming-value.incoming-value-consume-async: func

Params
Return values

[method]incoming-value.size: func

Params
diff --git a/wit/types.wit b/wit/types.wit index fed8482..979b054 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -65,11 +65,11 @@ interface types { /// value as an input-stream. // Soon: switch to `resource incoming-value { ... }` resource incoming-value { - incoming-value-consume-sync: func() -> result; - incoming-value-consume-async: func() -> result; + incoming-value-consume-sync: static func(this: incoming-value) -> result; + incoming-value-consume-async: static func(this: incoming-value) -> result; size: func() -> u64; } type incoming-value-async-body = input-stream; type incoming-value-sync-body = list; -} \ No newline at end of file +}