-
Notifications
You must be signed in to change notification settings - Fork 24
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
Is async file reading supported? #11
Comments
Async reads are currently not supported for the generic PathHandler. However, one path handler (for internal Meta use) does support it. |
Thanks for your reply @sujitoc . Would you know if there are plans to support async reading for regular on-disk files? |
…s. (facebookresearch#11) Summary: Pull Request resolved: fairinternal/iopath#11 Test Plan: Imported from GitHub, without a `Test Plan:` line. buck test mode/opt //fair_infra/data/iopath/tests:iopath_test Reviewed By: kkondaka Differential Revision: D32680188 Pulled By: sujitoc fbshipit-source-id: f0fca7de34a15ab0217a01306fe87f46126c23d6
this code already looks a lot like https://github.com/python/cpython/blob/3.11/Lib/asyncio/streams.py more specifically the StreamReader, and StreamWriter classes |
The docs of
PathManager.opena()
suggest that async reading is supported:iopath/iopath/common/file_io.py
Lines 1101 to 1103 in 9dd723a
But running the suggested code leads to the following error:
iopath/iopath/common/file_io.py
Lines 352 to 355 in 9dd723a
Are there plans to support async file reading? Thanks!
The text was updated successfully, but these errors were encountered: