From 0c628441ad76ea9c8b5ee1cf7a1636281aa838ac Mon Sep 17 00:00:00 2001
From: Yosh
Date: Thu, 3 Oct 2024 19:05:35 +0200
Subject: [PATCH] doc: change WASI Preview2 -> WASI 0.2
---
imports.md | 10 +++++-----
wit/ip-name-lookup.wit | 2 +-
wit/tcp.wit | 2 +-
wit/udp.wit | 6 +++---
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/imports.md b/imports.md
index f494ad3..661c217 100644
--- a/imports.md
+++ b/imports.md
@@ -563,7 +563,7 @@ I.e. after setting a value, reading the same setting back may return a different
[method]udp-socket.subscribe: func
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.
Params
@@ -610,7 +610,7 @@ This function never returns error(would-block)
.
[method]incoming-datagram-stream.subscribe: func
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.
Params
@@ -681,7 +681,7 @@ either check-send
was not called or datagrams
contains
[method]outgoing-datagram-stream.subscribe: func
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.
Params
@@ -1705,7 +1705,7 @@ in progress at the time of calling subscribe
(if any). Theoreticall
(re)used for the remainder of the socket's lifetime.
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.
Params
@@ -1864,7 +1864,7 @@ addresses have been exhausted, this function returns none
.
[method]resolve-address-stream.subscribe: func
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.
Params
diff --git a/wit/ip-name-lookup.wit b/wit/ip-name-lookup.wit
index 8d6dcec..d3ab88a 100644
--- a/wit/ip-name-lookup.wit
+++ b/wit/ip-name-lookup.wit
@@ -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;
diff --git a/wit/tcp.wit b/wit/tcp.wit
index 91f421b..728822d 100644
--- a/wit/tcp.wit
+++ b/wit/tcp.wit
@@ -353,7 +353,7 @@ interface tcp {
/// See
/// 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;
diff --git a/wit/udp.wit b/wit/udp.wit
index 328d916..d8acb2d 100644
--- a/wit/udp.wit
+++ b/wit/udp.wit
@@ -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;
@@ -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;
@@ -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;