es-toolkit
es-toolkit copied to clipboard
Support for `asyncNoop`
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
@raon0211 What do you think about adding that function? Please review and let us know what you think ! 🙏
I'd like to see this. If it is OK to make a PR, let me know.
Hello, sorry for the late reply. I guess this might be helpful, could you open a pull request?
@raon0211 Yes! I'll work on that and create a PR as soon as possible.