es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

Support for `asyncNoop`

Open ssi02014 opened this issue 1 year ago • 2 comments

Why not add an asynchronous version of the noop function, asyncNoop?

This can be useful for meeting asynchronous interface requirements or when testing specific code flows, such as in a test environment.

It can also be utilized as a preference callback function for certain frameworks or libraries.

code

export async function asyncNoop(): Promise<void> {};

referrence

https://www.slash.page/libraries/common/utils/src/noop_asyncNoop.i18n

ssi02014 avatar Oct 02 '24 02:10 ssi02014

@raon0211 What do you think about adding that function? Please review and let us know what you think ! 🙏

ssi02014 avatar Oct 06 '24 09:10 ssi02014

I'd like to see this. If it is OK to make a PR, let me know.

aeharding avatar Nov 08 '24 19:11 aeharding

Hello, sorry for the late reply. I guess this might be helpful, could you open a pull request?

raon0211 avatar Dec 01 '24 10:12 raon0211

@raon0211 Yes! I'll work on that and create a PR as soon as possible.

ssi02014 avatar Dec 01 '24 13:12 ssi02014