Skip to content
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

75 add a progress callback for reads and writes #76

Merged
merged 9 commits into from
May 28, 2024

Conversation

EmilDohne
Copy link
Owner

Added a progress callback which can optionally be attached to a LayeredFile<T>::read or LayeredFile<T>::write operation to asynchronously query the state of those tasks. This is especially useful for long operations on a large file or over a slow network connection.

This is currently only implemented on the C++ side but I would appreciate if someone would take the time to implement this on the python side too.

I have also added an example called ProgressCallbacks to illustrate how this can be used.

Fixes regression where passing a simple filename to either read or write (i.e. "OutputFile.psd" rather than "./OutputFile.psd") would cause a crash

@EmilDohne EmilDohne linked an issue May 28, 2024 that may be closed by this pull request
@EmilDohne EmilDohne merged commit aeece8f into master May 28, 2024
14 checks passed
@EmilDohne EmilDohne deleted the 75-add-a-progress-callback-for-reads-and-writes branch June 8, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a progress callback for reads and writes
1 participant