You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion! We've discussed using AbortController in other areas of the API, and certainly I think if we find a need for cancellable promises we'll be happy to make use of them. requestAnimationFrame is something of a special case, though, because we've done some negotiation with other parts of the web platform to ensure that it meshes nicely with window.requestAnimationFrame and can become part of a more generic interface that encapsulates both cases in the future if needed.
TL;DR: We're unlikely to see XR rAF change in format much because it's intentionally retaining compatibility with window rAF. I'm sold on using AbortController elsewhere, though.
Current API
So something like:
And usage:
The text was updated successfully, but these errors were encountered: