#constructor-pattern

[ follow ]
2ality
1 month ago
JavaScript

ECMAScript proposal: `Promise.withResolvers()`

ECMAScript 2024 introduces Promise.withResolvers for creating Promises directly, enhancing encapsulation and separation of concerns. [ more ]
[ Load more ]