Skip to content

Commit

Permalink
doc: change WASI Preview2 -> WASI 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Oct 3, 2024
1 parent ba00c88 commit 0c62844
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ I.e. after setting a value, reading the same setting back may return a different
</ul>
<h4><a id="method_udp_socket_subscribe"></a><code>[method]udp-socket.subscribe: func</code></h4>
<p>Create a <a href="#pollable"><code>pollable</code></a> which will resolve once the socket is ready for I/O.</p>
<p>Note: this function is here for WASI Preview2 only.
<p>Note: this function is here for WASI 0.2 only.
It's planned to be removed when <code>future</code> is natively supported in Preview3.</p>
<h5>Params</h5>
<ul>
Expand Down Expand Up @@ -610,7 +610,7 @@ This function never returns <code>error(would-block)</code>.</li>
</ul>
<h4><a id="method_incoming_datagram_stream_subscribe"></a><code>[method]incoming-datagram-stream.subscribe: func</code></h4>
<p>Create a <a href="#pollable"><code>pollable</code></a> which will resolve once the stream is ready to receive again.</p>
<p>Note: this function is here for WASI Preview2 only.
<p>Note: this function is here for WASI 0.2 only.
It's planned to be removed when <code>future</code> is natively supported in Preview3.</p>
<h5>Params</h5>
<ul>
Expand Down Expand Up @@ -681,7 +681,7 @@ either <code>check-send</code> was not called or <code>datagrams</code> contains
</ul>
<h4><a id="method_outgoing_datagram_stream_subscribe"></a><code>[method]outgoing-datagram-stream.subscribe: func</code></h4>
<p>Create a <a href="#pollable"><code>pollable</code></a> which will resolve once the stream is ready to send again.</p>
<p>Note: this function is here for WASI Preview2 only.
<p>Note: this function is here for WASI 0.2 only.
It's planned to be removed when <code>future</code> is natively supported in Preview3.</p>
<h5>Params</h5>
<ul>
Expand Down Expand Up @@ -1705,7 +1705,7 @@ in progress at the time of calling <code>subscribe</code> (if any). Theoreticall
(re)used for the remainder of the socket's lifetime.</p>
<p>See <a href="https://github.com/WebAssembly/wasi-sockets/blob/main/TcpSocketOperationalSemantics.md#pollable-readiness">https://github.com/WebAssembly/wasi-sockets/blob/main/TcpSocketOperationalSemantics.md#pollable-readiness</a>
for more information.</p>
<p>Note: this function is here for WASI Preview2 only.
<p>Note: this function is here for WASI 0.2 only.
It's planned to be removed when <code>future</code> is natively supported in Preview3.</p>
<h5>Params</h5>
<ul>
Expand Down Expand Up @@ -1864,7 +1864,7 @@ addresses have been exhausted, this function returns <code>none</code>.</p>
</ul>
<h4><a id="method_resolve_address_stream_subscribe"></a><code>[method]resolve-address-stream.subscribe: func</code></h4>
<p>Create a <a href="#pollable"><code>pollable</code></a> which will resolve once the stream is ready for I/O.</p>
<p>Note: this function is here for WASI Preview2 only.
<p>Note: this function is here for WASI 0.2 only.
It's planned to be removed when <code>future</code> is natively supported in Preview3.</p>
<h5>Params</h5>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion wit/ip-name-lookup.wit
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface ip-name-lookup {

/// Create a `pollable` which will resolve once the stream is ready for I/O.
///
/// Note: this function is here for WASI Preview2 only.
/// Note: this function is here for WASI 0.2 only.
/// It's planned to be removed when `future` is natively supported in Preview3.
@since(version = 0.2.0)
subscribe: func() -> pollable;
Expand Down
2 changes: 1 addition & 1 deletion wit/tcp.wit
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ interface tcp {
/// See <https://github.com/WebAssembly/wasi-sockets/blob/main/TcpSocketOperationalSemantics.md#pollable-readiness>
/// for more information.
///
/// Note: this function is here for WASI Preview2 only.
/// Note: this function is here for WASI 0.2 only.
/// It's planned to be removed when `future` is natively supported in Preview3.
@since(version = 0.2.0)
subscribe: func() -> pollable;
Expand Down
6 changes: 3 additions & 3 deletions wit/udp.wit
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ interface udp {

/// Create a `pollable` which will resolve once the socket is ready for I/O.
///
/// Note: this function is here for WASI Preview2 only.
/// Note: this function is here for WASI 0.2 only.
/// It's planned to be removed when `future` is natively supported in Preview3.
@since(version = 0.2.0)
subscribe: func() -> pollable;
Expand Down Expand Up @@ -220,7 +220,7 @@ interface udp {

/// Create a `pollable` which will resolve once the stream is ready to receive again.
///
/// Note: this function is here for WASI Preview2 only.
/// Note: this function is here for WASI 0.2 only.
/// It's planned to be removed when `future` is natively supported in Preview3.
@since(version = 0.2.0)
subscribe: func() -> pollable;
Expand Down Expand Up @@ -280,7 +280,7 @@ interface udp {

/// Create a `pollable` which will resolve once the stream is ready to send again.
///
/// Note: this function is here for WASI Preview2 only.
/// Note: this function is here for WASI 0.2 only.
/// It's planned to be removed when `future` is natively supported in Preview3.
@since(version = 0.2.0)
subscribe: func() -> pollable;
Expand Down

0 comments on commit 0c62844

Please sign in to comment.