Skip to content

Commit

Permalink
Synchronize with BCD v5.6.4 (mdn#36084)
Browse files Browse the repository at this point in the history
Co-authored-by: OnkarRuikar <[email protected]>
  • Loading branch information
OnkarRuikar and OnkarRuikar authored Oct 2, 2024
1 parent 9efc5c0 commit 79f7580
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/scheduler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ None.

- {{domxref('Scheduler.postTask()')}}
- : Adds a task to the scheduler as a callback, optionally specifying a priority, delay, and/or a signal for aborting the task.
- {{domxref('Scheduler.yield()')}}
- {{domxref('Scheduler.yield()')}} {{experimental_inline}}
- : Yields control of the main thread back to the browser, returning a promise that resolves to continue execution where it left off.

## Examples
Expand Down
4 changes: 3 additions & 1 deletion files/en-us/web/api/scheduler/yield/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ title: "Scheduler: yield() method"
short-title: yield()
slug: Web/API/Scheduler/yield
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.Scheduler.yield
---

{{APIRef('Prioritized Task Scheduling API')}}{{AvailableInWorkers}}
{{APIRef('Prioritized Task Scheduling API')}}{{AvailableInWorkers}}{{SeeCompatTable}}

The **`yield()`** method of the {{domxref('Scheduler')}} interface is used for yielding to the [main thread](/en-US/docs/Glossary/Main_thread) during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the [Prioritized Task Scheduling API](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) for more information). This allows long-running work to be broken up so the browser stays responsive.

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/manifest/serviceworker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ The `serviceworker` member specifies a serviceworker that is Just-In-Time (JIT)-

`serviceworker` objects may contain the following values:

- `scope` {{experimental_inline}}
- `scope` {{experimental_inline}} {{non-standard_inline}}

- : A string representing the service worker's registration scope.

- `src` {{experimental_inline}}
- `src` {{experimental_inline}} {{non-standard_inline}}

- : A string representing the URL to download the service worker script from.

- `use_cache` {{experimental_inline}}
- `use_cache` {{experimental_inline}} {{non-standard_inline}}

- : A boolean that sets how the HTTP cache is used for service worker script resources during updates.
It provides equivalent functionality to certain values of the `updateViaCache` option provided when a service worker is registered via JavaScript using {{domxref("ServiceWorkerContainer.register()")}}.
Expand Down

0 comments on commit 79f7580

Please sign in to comment.