-
Notifications
You must be signed in to change notification settings - Fork 340
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
Make blocking
public?
#65
Comments
It would also be quite useful for me to have the It's I assume it's not public anymore because there was not enough certainty that this is a good enough API to be stabilized as 1.0 soonish? Were there specific concerns about it? To me it looks like exactly how you'd expect such an API to look like. |
Maybe (also in relation to #60), it would make sense to at least give access to some internals and "uncertain-if-good-enough-for-1.0"-APIs via a feature flag. That way there can be some experimentation with the API and it isn't required for everybody to duplicate the implementation. |
This has come up several times, and we need to come up with a public API for this. This seems something we'll want to do in the medium term for sure; though we could cheat it by introducing the current API as "unstable" first (which seems almost guaranteed like it would change). @stjepang do you have any thoughts? |
Can you also expose the |
👍 on exposing |
I've filed #251 for the blocking function. We'll need to come up with something else to expose driver though (got some ideas; but got to test them out first.) Hope this helps! |
Bump to v1.5.0
Hi! I was using
async-std
in mycacache
library. One of the things that I'm trying to do is implementAsyncWrite
for it, but it turns out I'm using a tmpfile library that does sync i/o. Because of that, I pretty much copy-pasted theAsyncWrite
impl forasync-std
'sFile
, and it turns out with the latest version,task::blocking
is now private, so I can't just... do that. (To clarify, I was using async-std pre-release, when I needed to use async-pool for this, and I just started porting the code over tonight when I ran into this).For the sake of compatibility, it would be nice to have this available. My code that's doing this is over here, in case there turns out to be a Better Way™ to do what I'm trying to do that hopefully doesn't involve reimplementing tmpfile logic: https://github.com/zkat/cacache-rs/blob/zkat/async/src/content/write.rs#L147-L256
Cheers!
The text was updated successfully, but these errors were encountered: