Skip to content

Commit

Permalink
Add warning for out-of-date yield explainers (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaseley authored Sep 27, 2024
1 parent ec14f7d commit 83873f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions explainers/prioritized-task-scheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ doSomethingWithAbortSignal(signal);

### `scheduler.yield()`

**WARNING: This section is out of date.** The API no longer supports directly
specifying the priority and abort behavior, but rather inherits this state from
the current task. See https://wicg.github.io/scheduling-apis/#dom-scheduler-yield
for the up-to-date API and behavior.

(See also the [separate `scheduler.yield()` explainer](./yield-and-continuation.md)).

`scheduler.yield()` can be used in any context to yield to the event loop by awaiting the promise it
Expand Down
5 changes: 5 additions & 0 deletions explainers/yield-and-continuation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# `scheduler.yield()`

**WARNING: This explainer is out of date.** The API no longer supports directly
specifying the priority and abort behavior, but rather inherits this state from
the current task. See https://wicg.github.io/scheduling-apis/#dom-scheduler-yield
for the up-to-date API and behavior.

## Authors

- [Scott Haseley](https://github.com/shaseley)
Expand Down

0 comments on commit 83873f3

Please sign in to comment.