Skip to content

Conversation

@PeterStaev
Copy link
Contributor

@PeterStaev PeterStaev commented Aug 11, 2019

PR Checklist

What is the current behavior?

Current file-system methods 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-widgets execute the read/write operations in a separate thread.

Closes #2239 .

@cla-bot cla-bot bot added the cla: yes label Aug 11, 2019
@PeterStaev PeterStaev changed the title feat(files-system): async read/write feat(file-system): async read/write Aug 11, 2019
@NathanaelA

This comment was marked as abuse.

@PeterStaev
Copy link
Contributor Author

Yes, this is a possible solution, if breaking changes in minor versions are considered that bad :)

@etabakov
Copy link
Contributor

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!

@PeterStaev
Copy link
Contributor Author

@etabakov , updated and removed the breaking changes. Removed from the above description as well :)

@manoldonev manoldonev self-requested a review August 21, 2019 13:53
@isabelh340
Copy link

Alot

@manoldonev
Copy link
Contributor

test

1 similar comment
@SvetoslavTsenov
Copy link
Contributor

test

@manoldonev manoldonev added the docs needed Additional documentation on this issue/PR is needed label Oct 2, 2019
@manoldonev manoldonev merged commit 2146ac9 into NativeScript:master Oct 2, 2019
@manoldonev
Copy link
Contributor

@PeterStaev Looking good now and I have merged the PR. Thanks!
Will check what exactly is the process with https://www.bountysource.com/issues/34832190-make-the-file-system-module-run-in-a-background-thread and someone with the NativeScript team will follow up with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ♥ community PR docs needed Additional documentation on this issue/PR is needed

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

Make the file-system module run in a background thread [$300]

7 participants