Skip to content

Conversation

@ramondeklein
Copy link
Contributor

@ramondeklein ramondeklein commented May 18, 2024

Fixes timing issue when running progress test. I have introduced a SyncProgress class that invokes progress updates synchronously and on the thread that is currently executing. Although not suitable for UI applications (that require UI updates to be done on the main-thread), it's perfectly fine for other situations.

harshavardhana
harshavardhana previously approved these changes May 18, 2024
@ramondeklein ramondeklein linked an issue May 18, 2024 that may be closed by this pull request
Copy link
Collaborator

@ebozduman ebozduman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 3 more instances of old new Progress(<ProgressReport>(... that need to be replaced with new SyncProgress(<ProgressReport>(...
in 3 files:

  • API.md
  • Program.cs (Functional)
  • FunctionalTest.cs

@ramondeklein
Copy link
Contributor Author

@ebozduman I've fixed the occurences in most places, but I didn't replace the implementation in the API description. I did describe the implications of Progress<T> and when to use SyncProgress<T>. But using SyncProgress<T> isn't always recommended and it may result in other issue.

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.

PutObject_Test9 sometimes fails during CI/CD build

3 participants