diff --git a/README.md b/README.md index 8cb693f2..acf49ed6 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,10 @@ The current WASI Developer Preview releases are: emoji throughout the repo). * 0.3.1: adds the `map` type (πŸ—ΊοΈ) and the `implements` and `external-id` annotations (🏷️). +* 0.3.3: adds cooperative threads (🧡). Subsequent WASI Developer Preview releases will include other emoji-[gated -features] such as cooperative threads (🧡). +features]. ## Contributing diff --git a/design/mvp/Concurrency.md b/design/mvp/Concurrency.md index 2d454282..33b6aaf1 100644 --- a/design/mvp/Concurrency.md +++ b/design/mvp/Concurrency.md @@ -1452,11 +1452,11 @@ created for a task and default *cleared* for the explicit threads created by alive until it returns the `EXIT` code (`0`). As an example, in JavaScript, the Service Worker API's [`waitUntil`] method -would delay returning the `EXIT` code. In 0.3.0, without cooperative threads -(🧡), [`setInterval`] would also unfortunately delay -returning the `EXIT` code and thus, without guest code intervention, would keep -component instances alive until timeout limits were hit. The release of -cooperative threads would offer a solution to this problem, but an awkward one. +would delay returning the `EXIT` code. Before 0.3.3, without cooperative threads +(🧡), [`setInterval`] would also unfortunately delay returning the `EXIT` code +and thus, without guest code intervention, would keep component instances alive +until timeout limits were hit. The release of cooperative threads in 0.3.3 +offers a solution to this problem, but an awkward one. Instead, the [intention](#TODO) is to add new built-in functions that would provide guest code more direct, dynamic control over its own keep-alive flags, thereby allowing the JS event loop to clear its keep-alive flag once all diff --git a/design/mvp/Text.md b/design/mvp/Text.md index 40106158..de3537a0 100644 --- a/design/mvp/Text.md +++ b/design/mvp/Text.md @@ -19,6 +19,7 @@ and thus are not open to breaking changes before the final 1.0 release: * πŸ”€: native concurrency support with `async`, `stream` and `future` * πŸ—ΊοΈ: the `map` type * 🏷️: `implements` and `external-id` annotations for imports/exports +* 🧡: cooperative threading built-ins All other features are in various stages of implementation, are not enabled by default, may have breaking changes, and, after a suitable [WASI] SG vote, may be @@ -27,8 +28,7 @@ shipped as part of a future WASI Developer Preview release: * πŸͺΊ: nested namespaces and packages in import/export names * 🚝: enabling more canonical ABI options on more async-related builtins * 🚟: using `async` with `canon lift` without `callback` (stackful lift) -* 🧡: threading built-ins - * πŸ§΅β‘‘: [shared-everything-threads]-based threading built-ins +* πŸ§΅β‘‘: [shared-everything-threads]-based threading built-ins * πŸ”§: fixed-length lists * πŸ“: the `error-context` type * πŸ”—: canonical interface names