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

0.10.0 #27

Merged
merged 3 commits into from
Oct 8, 2024
Merged

0.10.0 #27

merged 3 commits into from
Oct 8, 2024

Conversation

al8n
Copy link
Owner

@al8n al8n commented Oct 8, 2024

No description provided.

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.05%. Comparing base (a96c0e4) to head (c52a880).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   89.07%   92.05%   +2.98%     
==========================================
  Files           7        7              
  Lines         357      428      +71     
==========================================
+ Hits          318      394      +76     
+ Misses         39       34       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@al8n al8n merged commit 58cc3f2 into master Oct 8, 2024
10 checks passed
@al8n al8n deleted the 0.10.0 branch October 8, 2024 09:40
Comment on lines +48 to +49
/// **Note:** This method is not really "async", the underlying system call is still blocking.
/// Having this method as async is just for convenience when using it in async runtime.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is NOT convenient at all. This is in fact very misleading and confusing to call an async function and get runtime blocked!

Consider remove all APIs that are not actually async to prevent such confusion. This will allow users to use Arc<File> in something like tokio::task::spawn_blocking() explicitly preventing runtime blocking.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those APIs are discussed in #17, maybe we could continue to discuss them there if 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.

2 participants