feat(file-system): async read/write#7671
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 .