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

Reduce how much code requires tokio_async to compile #113

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

cgettys-microsoft
Copy link
Contributor

@cgettys-microsoft cgettys-microsoft commented Dec 20, 2024

Ideally, almost no code would have to care about async vs sync, or whether the executor is tokio or something else.
This may be a impractical goal, but it would certainly be nice.

I noticed that some bits of the sync module do not require tokio_async, and may be useful to me implementing a safe synchronous (from the Rust language feature perspective, anyway) version of BeginGetProperty et cetera (see issue
#98 ).
Whether such a sync API is useful to mssf_core, I'm not sure, but right now, my particular use case does not need tokio here, and it's a heavy dependency.

Reorganize code to address some TODOs and increase how much of the code can compile without tokio.

@cgettys-microsoft cgettys-microsoft marked this pull request as ready for review December 20, 2024 22:26
@youyuanwu youyuanwu merged commit caf742a into Azure:main Dec 20, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants