Awaited but never resolved/rejected promise memory usage [duplicate]
问题 This question already has an answer here : Does never resolved promise cause memory leak? (1 answer) Closed last month . Will await ing a Promise which neither resolves nor rejects (never settle/unfulfilled) cause a memory leak? I got curious about this while looking at React hooks with slorber/awesome-debounce-promise that creates new promises, but only settles the last one of them, thus leaving many/most unsettle/unfulfilled. 回答1: Preface (you probably know this!): await is syntactic sugar