-
Notifications
You must be signed in to change notification settings - Fork 29
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
Which of the methods are coroutine-safe? #81
Comments
TL/DR: Writer - Yes, Reader - Yes, LineReader - Probably yes. However, the point is not quite clear, since these are objects that just contain a pointer to an offset, they are cheaper to copy and send each copy to the diferrent coroutines in my opinion. I think questions like this has to do with some misunderstanding of exactly how this library designed under the hood. It's probably my bad, fail to explain this in the docs. There is So, objects of class However, the library has some helpers that allow you to use one This is not the first question in this vein, I do not know how best to reflect this in the documentation, it would be great if someone could help me. |
Thanks for the timely reply! After some investigation, I'm using |
Can I share a file/reader/writer object in different coroutines without Lock? Which methods are coroutine-safe?
The text was updated successfully, but these errors were encountered: