Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add a Watchable AsyncStatus and extend the wrap decorator #176
Add a Watchable AsyncStatus and extend the wrap decorator #176
Changes from 12 commits
0a5533e
8b926b4
d1148e3
0c67305
dab791b
adc784e
5f0d555
27d022c
c0ab271
493ba2a
85f4c28
d8ff94a
b04e60a
730ee2c
0fc2ccb
d5eff2b
f34ff7e
dbc2d02
1798b41
42e6075
3be4f14
2a12be3
16f77b0
5691fcf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original code kicked off
self._observe_writer_indices
and returned immediately, then returned this status incomplete
. This code now actually awaits this Status, which is wrong.However, I think a simplification of the code is the better fix:
Then can delete
_fly
and_observe_writer_indices
...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flyable
tells us thatkickoff
andcomplete
must both return statuses.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, they're both being wrapped by
*AsyncStatus
so return aStatus
. It's just thatkickoff
returns one that is immediately done...