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

Async/Await Support? #27

Open
Tederean opened this issue Jun 23, 2023 · 1 comment
Open

Async/Await Support? #27

Tederean opened this issue Jun 23, 2023 · 1 comment

Comments

@Tederean
Copy link

Do you plan to add asynchronous functions to the library? This makes sense for network IO.

If it's not planned, would you accept a pull request provided it was of reasonable quality?

@diogotr7
Copy link
Owner

Hi,

I haven't added any async support because neither Artemis nor Aurora (which is why i wrote this library in the first place) would use it. I don't have anything against this in principle. How would you expect such an API to look like? Send and SendAsync versions of the same thing, in the same class? Maybe a constructor parameter to set async mode on the socket? I don't mind writing this myself as some of the code directly related to async reading could use some cleanup, just unsure how to design this API.

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