Skip to content

feat: add default_sync and is_async feature gate #26

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

XLPhere
Copy link

@XLPhere XLPhere commented Jan 19, 2025

Purpose of these features is to enable depdendants to provide a feature to enable async support instead of a feature to disable it. Creates (which would want to be sync by default) could then:

  • Always enable the default_sync feature.
  • Enable async support with the is_async feature when needed.

@XLPhere XLPhere force-pushed the default_sync branch 2 times, most recently from ba39034 to 4de3359 Compare January 19, 2025 15:21
@XLPhere
Copy link
Author

XLPhere commented Jan 19, 2025

Oh i just noticed this is a duplicate to #12 - my bad @qiuchengxuan! i saw it right after creating this PR 😅
I'll still leave this open as an option to choose, since this one has no open conflicts and also some extra info in the readme.
Recommendations for how this can be improved always are welcome!

Purpose of these features is to enable depdendants to provide a feature
to enable async support instead of a feature to disable it.
Creates (which would want to be sync by default) could then:
* Always enable the `default_sync` feature.
* Enable async support with the `is_async` feature when needed.
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.

1 participant