Skip to content

Commit 83873f3

Browse files
authored
Add warning for out-of-date yield explainers (#109)
1 parent ec14f7d commit 83873f3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

explainers/prioritized-task-scheduling.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ doSomethingWithAbortSignal(signal);
340340

341341
### `scheduler.yield()`
342342

343+
**WARNING: This section is out of date.** The API no longer supports directly
344+
specifying the priority and abort behavior, but rather inherits this state from
345+
the current task. See https://wicg.github.io/scheduling-apis/#dom-scheduler-yield
346+
for the up-to-date API and behavior.
347+
343348
(See also the [separate `scheduler.yield()` explainer](./yield-and-continuation.md)).
344349

345350
`scheduler.yield()` can be used in any context to yield to the event loop by awaiting the promise it

explainers/yield-and-continuation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# `scheduler.yield()`
22

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

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

0 commit comments

Comments
 (0)