-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(file-system): async read/write #7671
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
Conversation
This comment was marked as abuse.
This comment was marked as abuse.
|
Yes, this is a possible solution, if breaking changes in minor versions are considered that bad :) |
|
Hey, @PeterStaev. Regarding the breaking changes policy, our team is committed to following the SemVer Specification, which means that all changes in a minor version should be introduced in a backward-compatible manner. With that said, Nathanael's suggestion is a good one. Would you mind adjusting your PR according to his proposal, so that we can proceed with the technical review? Thanks for jumping on this issue! |
|
@etabakov , updated and removed the breaking changes. Removed from the above description as well :) |
|
Alot |
tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/Async.java
Outdated
Show resolved
Hide resolved
|
test |
1 similar comment
|
test |
|
@PeterStaev Looking good now and I have merged the PR. Thanks! |
PR Checklist
What is the current behavior?
Current
file-systemmethods for read/write files are synchronous which makes the UI thread block if a big file is read/written.What is the new behavior?
True async methods have been added that use native code inside
tns-core-modules-widgetsexecute the read/write operations in a separate thread.Closes #2239 .