promise详解

Searching…

www.reddit.com

Promise executor functions should not be async :...

Jul 10, 2022 · You can use an async function as a new Promise executor, but you have to be careful because if that function throws an error, it does not automatically reject the new promise instance like a synchronous...

www.reddit.com

Is there a way to cancel a promise? : r/node - Reddit

Apr 16, 2022 · In the promise, the AbortSignal is subscribed to, if it aborts, the promise throws the abort signal. You can attach a subscriber to the AbortSignal to handle file / network cancellation.

www.reddit.com

What is the actual promise? : r/signalis - Reddit

Mar 2, 2023 · This using the interpretation of (promise) itself & it being an antonym to the actual promise. Since what happens in that ending is the breaking of a promise. Perhaps in thus interpretation, Elster & Ari...

www.reddit.com

How cocurrent Promise.all () actually is? : r/node - Reddit

Promise.all doesn't actually handle any concurrency at all, it will simply just wait for the promises to resolve. Once you create the requests, the promises are all running, and Promise.all orchestrates the waiting fo...