wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

Implement the `future` type

Open sunfishcode opened this issue 3 years ago • 2 comments

https://github.com/bytecodealliance/wit-bindgen/pull/269 adds support for parsing the future type. There are many todo!s left for the implementation in the canonical ABI and bindings implementations.

sunfishcode avatar Jul 01 '22 00:07 sunfishcode

https://github.com/bytecodealliance/wit-bindgen/issues/270 is an issue tracking the remainder of the implementation for futures.

sunfishcode avatar Jul 01 '22 00:07 sunfishcode

One thing I want to note here is that future, stream, and other async things are not present in the component model spec at this time. To that end I don't believe that this issue is implementable today because it's not clear what it would mean to actually implement the future type given that there's no target to implement. I think that work needs to be done to design how future and stream types would work first before actually implementing them in wit-bindgen, although a local fork could of course be used to prototype various design decisions.

alexcrichton avatar Sep 14 '22 16:09 alexcrichton

I'm going to close tis for similar reasons to https://github.com/bytecodealliance/wit-bindgen/issues/233 where work needs to happen upstream first rather than in this repository.

alexcrichton avatar Nov 22 '22 20:11 alexcrichton