Skip to content
Snippets Groups Projects
Unverified Commit 1fcc375d authored by Michael Telatynski's avatar Michael Telatynski Committed by GitHub
Browse files

Deprecate utils function `defer` in favour of `Promise.withResolvers` (#4829)


* Switch from defer to Promise.withResolvers

As supported by the outgoing LTS version (v22) which has 99% support of ES2024

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* delint

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* Deprecate defer instead of killing it

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* Knip

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* Iterate based on review

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* Iterate based on review

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* Iterate based on review

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

* Improve coverage

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>
parent d24c5d8b
No related branches found
No related tags found
Loading
Showing
with 128 additions and 115 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment