Re: [whatwg/dom] Add AbortSignal.timeout(ms) (#951)

Consider me interested! I created a tracking bug [here](https://bugs.chromium.org/p/chromium/issues/detail?id=1181925).

> I think we should share the timer task source with setTimeout().

Does this mean that I should just internally call setTimeout?

> I think we should not include the clamping/nesting behavior of setTimeout(), although I'm open to being persuaded otherwise.

What is the clamping/nesting behavior?

> We should use [EnforceRange] unsigned long long so that you get a quick exception on negative or too-large numbers, instead of clamping negative numbers to zero and taking too-large numbers modulo 2**32.

I'm guessing this means that I just have to [write it like this](https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/streams/underlying_source.idl;l=12;drc=c85fa18ea9fd78fb9c992ac3dca9ae41d2f0a2a3) when I add it to the IDL?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/951#issuecomment-785432044

Received on Wednesday, 24 February 2021 22:40:29 UTC