@@ -40,18 +40,19 @@ and the SDK will manage its storage so that data does not remain in storage afte
4040
4141The Glean SDK tries to do all of this is the least disruptive way possible to users.
4242
43- ### async (Web Extensions)
43+ ### Browser
44+
45+ All of the SDKs tasks are executed synchronously, immediately as they are called. Errors will be caught without ever crashing the application.
46+
47+ ### Web Extensions
4448
4549All of the SDKs tasks are queued and executed asynchronously. The APIs exposed by the Glean SDK will only do
4650the en-queuing of tasks, a quick synchronous operation. Internally, the Glean SDK will handle the
4751queued tasks asynchronously, catching any errors thrown along the way so that Glean never
4852crashes a users application.
4953
50- ### sync (Browser)
51-
52- All of the SDKs tasks are executed synchronously, immediately as they are called. The APIs exposed by Glean
53- are the same as the async implementation, but without queueing of any tasks. Errors will be caught without
54- ever crashing the application.
54+ The web extension SDK is currently not being developed. If you want to use the SDK in your web extension
55+ please reference the [ Glean.js user docs] ( https://mozilla.github.io/glean.js/getting_started/platforms/#deprecated-platforms ) .
5556
5657## Code Map
5758
@@ -88,9 +89,6 @@ created to mitigate that issue. This file houses the `Context` structure, a sing
8889setters and getters to all of Glean's internal state. This file should avoid any imports that are
8990not ` import type ` .
9091
91- ` dispatcher.ts ` is where Glean's dispatcher implementation lives. The dispatcher is the structure
92- that manages Glean's task queue.
93-
9492` metrics/types ` is where all of the specific metric type implementations are. Each metric type
9593should be implemented in a single file and no other file types should be added to this folder,
9694because the files under this folder are exposed through the ` @mozilla/glean/private/metrics/* `
@@ -132,15 +130,3 @@ exposed through the `@mozilla/glean/plugins/*` entry point.
132130
133131This file is what gets executed when a user that has installed Glean through npm invokes the ` glean `
134132command. It serves as a wrapper to call ` glean_parser ` commands more easily from JavaScript projects.
135-
136- ### ` async ` /` sync ` files
137-
138- There are certain places where we need different implementations for internal services based on the
139- platform. In these instances, the service will have its own folder with the following folder structure:
140-
141- ```
142- ├── service/
143- ├──── async.ts
144- ├──── shared.ts # Shared base class defining all available methods AND any reusable helper functions
145- └──── sync.ts
146- ```
0 commit comments