component-model icon indicating copy to clipboard operation
component-model copied to clipboard

Allow consuming methods

Open badeend opened this issue 1 year ago • 8 comments

Currently the spec states:

Validation of [method] names requires the first parameter of the function to be (param "self" (borrow $R)), where $R is the resource labeled r.

Are there any plans to allow methods that consume their self argument?

My specific use case would be; to define a specialized destructor for a resource, which takes additional arguments and is async.

badeend avatar Aug 14 '23 07:08 badeend