mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
653 stars 73 forks source link

Scheduling APIs: scheduler.postTask #546

Closed shaseley closed 3 years ago

shaseley commented 3 years ago

Request for Mozilla Position on an Emerging Web Specification

Other information

annevk commented 3 years ago

@smaug---- @Bas-moz @mystor @farre might also have thoughts on this. The API seems reasonable to me. One thing I vaguely recall in relation to this is whether it should reuse more of the setTimeout() semantics when the delay parameter is used. As in, perhaps HTML's timer initialization steps should be generalized so they can be reused here and implementations can apply the same kind of mitigations.

mystor commented 3 years ago

I haven't looked into this too deeply but the API seems reasonable enough on a surface level. Figuring out exactly how this will interact with gecko's event loops and scheduling work may be an interesting issue, but I'd defer to @Bas-moz and @krispyfries as the experts on how our event loops work. I imagine that the biggest part of this review would be when implementing to make sure that the APIs are easy/reasonable for us to implement.

sefeng211 commented 3 years ago

I don't think anyone is objecting this API, and I believe @smaug---- and @Bas-moz both agreed that this is worth prototyping.

Can we change the status of this API to worth prototyping?

annevk commented 3 years ago

@sefeng211 yeah, please create a PR. It's probably big enough for a dashboard entry.