Open Bug 1744312 Opened 2 years ago Updated 8 months ago

Clean-up consumers of the old moz_task::Task API

Categories

(Core :: XPCOM, task, P3)

task

Tracking

()

People

(Reporter: nika, Unassigned)

References

Details

This API is currently quite awkward, and code which uses it has to contort itself in various ways to satisfy arbitrary thread-safety requirements (such as wrapping everything in ThreadSafeRefPtr and AtomicCell). A more modern interface like the spawn APIs being added in bug 1739727 handles every one of these situations better than the existing APIs, allowing for more clear ownership transfer with rust's futures.

This bug is to track cleaning up the existing consumers of the old API so we can eventually strip it out.

You need to log in before you can comment on or make changes to this bug.