Skip to content

0.10.0#27

Merged
al8n merged 3 commits into
masterfrom
0.10.0
Oct 8, 2024
Merged

0.10.0#27
al8n merged 3 commits into
masterfrom
0.10.0

Conversation

@al8n
Copy link
Copy Markdown
Owner

@al8n al8n commented Oct 8, 2024

No description provided.

@codecov
Copy link
Copy Markdown

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
@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.
Copy link
Copy Markdown

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
Copy Markdown
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