Revise the documentation for WASI 0.3.0's tcp-socket::receive.#112
Conversation
`receive` no longer returns its own `result`, so update the text that says it fails if `receive` has already been called. Instead say that a new stream that immediately fails is returned. And, be specific about how the `stream` and the `future` to say that either both succeed or both fail. This eliminates ambiguity about whether the `stream` could report a failure independently of the `future`.
|
For additional context here, there's discussion in #111 about migrating So instead of evolving toward This PR anticipates that evolution by specifying that we only have one success/failure condition. |
|
If this is accepted, I'd plan to update wasi-filesystem's corresponding |
|
Looks good to me. Thanks!
Is this already being tracked somewhere, aside from this PR? |
Not yet; the idea only just came up a few days ago. Luke mentioned it here and included it in his presentation here, though it's still a very rough idea at this point. |
Similar to WebAssembly/wasi-sockets#112, revise the description of `read` to clarify the relationship between the `stream` and the `future`.
Similar to WebAssembly/wasi-sockets#112, revise the description of `read` to clarify the relationship between the `stream` and the `future`.
Similar to WebAssembly/wasi-sockets#112, revise the description of `read` to clarify the relationship between the `stream` and the `future`.
receiveno longer returns its ownresult, so update the text that says it fails ifreceivehas already been called. Instead say that a new stream that immediately fails is returned.And, be specific about how the
streamand thefutureto say that either both succeed or both fail. This eliminates ambiguity about whether thestreamcould report a failure independently of thefuture.