Skip to content

Warn readers that IdleDeadline.timeRemaining() can adjust asynchronously #104

@jyasskin

Description

@jyasskin

https://w3c.github.io/requestidlecallback/#dom-idledeadline-timeremaining says it calls the 'get deadline time' algorithm, but you have to look for a while to discover that that's set in https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model to an algorithm whose response can change in the middle of a task. (I did greatly appreciate that that's linked from https://w3c.github.io/requestidlecallback/#dfn-start-an-idle-period so I didn't have to look through https://dontcallmedom.github.io/webdex/.)

Could you add a note so people reading this notice the (justified) behavior that violates https://w3ctag.github.io/design-principles/#js-rtc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions