Suggestion: describe setTimeout limitations? #29522
Labels
closed: question
A user misinterpretation or support question. No action required.
Content:WebAPI
Web API docs
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/setTimeout
What specific section or headline is this issue about?
setTimeout() global function
What information was incorrect, unhelpful, or incomplete?
I hesitate to say any of this is incorrect, unhelpful, or incomplete. Personally--and I mean this in general, not specific to MDN--I always struggle when I have a question like, "Is it possible to do
x
?" You can search and search for an answer, but until you find something definitive, your search will be inconclusive.With that in mind, I have a few "Is it possible to do
x
withsetTimeout
?"` questions that could be documented:setTimeout
(e.g., waiting, complete, canceled)?setTimeout
s that dispatches when the timeout is completed?setTimeout
s that dispatches if the timeout is canceled?These questions have permutations depending on whether or not the user can edit the code that uses
setTimeout
, can edit thefunctionRef
, or can gain access to thetimeoutID
.I want to be clear that I'm not asking for a "
setTimeout
Cookbook" section; those are the types of questions I would ask on stack overflow. Instead, I'm asking if this functionality is built into the standard library.What did you expect to see?
To be honest, I wasn't necessarily expecting to see this until I noticed the plethora of detail in this page's subsections. I kept scrolling, hoping to find a
setTimeout
limitation section. Since I didn't find it, I figured I'd create an issue.Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
I apologize this issue wastes anyone's time; I'm not confident it makes sense to answer these questions. Even if it does make sense to answer them, it may not belong on this page. It may not even belong on MDN. I had these questions and I wished I could find the answers here, but that's just my POV and experience. That doesn't mean it'll be anyone else's.
MDN metadata
Page report details
en-us/web/api/settimeout
The text was updated successfully, but these errors were encountered: