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

Sync vs Async #63

Open
pedro-devv opened this issue Mar 19, 2024 · 0 comments
Open

Sync vs Async #63

pedro-devv opened this issue Mar 19, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@pedro-devv
Copy link
Contributor

pedro-devv commented Mar 19, 2024

At the moment, some workarounds and shortcuts such as block_in_place and spawn_blocking are used to allow calling blocking functions in asynchronous contexts and simplify the implementation of async counterpart functions. This may not be optimal.

Two things to address with this issue:

  • Should sync functions with async counterparts be callable in async contexts?
  • Should async function counterparts be fully implemented?

Whatever is decided, it should be consistent across the whole crate. This isn't really a high priority, but should still be kept in mind.

@pedro-devv pedro-devv added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant