Closed Bug 1344733 Opened 4 years ago Closed 3 years ago

[meta] Update Telemetry JS modules to async function & await

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
firefox54 --- affected

People

(Reporter: gfritzsche, Unassigned)

References

Details

(Keywords: meta, Whiteboard: [measurement:client] [measurement:client:project])

We have `async function` and `await` now:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function

We should be able to switch all of the `Task.async`, `Task.spawn`, `function*` and `yield` uses over to those:
https://dxr.mozilla.org/mozilla-central/search?q=path%3Atoolkit%2Fcomponents%2Ftelemetry%2F+ext%3Ajs+ext%3Ajsm+Task.&redirect=false

The only case i can think of that doesn't migrate trivially is any `DeferredTask` usage, we could just leave that one for now.
Depends on: 1344737
Depends on: 1344738
Depends on: 1344741
Depends on: 1344743
Depends on: 1344744
The dependencies here are resolved, closing.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.