Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for asyncNoop #636

Open
ssi02014 opened this issue Oct 2, 2024 · 2 comments
Open

Support for asyncNoop #636

ssi02014 opened this issue Oct 2, 2024 · 2 comments

Comments

@ssi02014
Copy link
Contributor

ssi02014 commented Oct 2, 2024

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
Copy link
Contributor Author

ssi02014 commented Oct 6, 2024

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

@aeharding
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants