Skip to content

Conversation

minrk
Copy link
Member

@minrk minrk commented Jul 13, 2021

computing len(client.ids) or AsyncResult.progress can change on each call due to updates from the io thread,
so avoid accessing more than once within a single computation.

closes #526

computing `len(client.ids)` or `AsyncResult.progress` can change on each call due to updates from the io thread,
so avoid accessing more than once within a single computation

and avoid deprecated `tqdm.tqdm_notebook`
@minrk minrk requested a review from sahil1105 July 14, 2021 10:19
Copy link
Collaborator

@sahil1105 sahil1105 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @minrk!

@minrk minrk merged commit 3093386 into ipython:main Jul 16, 2021
@minrk minrk deleted the tqdm-races branch July 16, 2021 10:24
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.

Progress bars can close before completing
2 participants