-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
simplify wait()
#58595
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
simplify wait()
#58595
Conversation
Hello! I am a bot. Thank you for your pull request! I have assigned
|
@kpamnany Can you review this? |
FWIW, IIUC, the two aren't exactly identical. Julia is allowed (in future Julia versions) to disable In contrast, IIUC, a typeassert will never be disabled. |
Yeah, I forgot about that when composing the commit message, but I think that's actually the strongest point in favor of this PR. A typeassert to a concrete literal type is free but can improve inference, so it seems like it's preferable to keep the typeassert regardless of optimization level. |
db71ae7
to
2ffeca1
Compare
wait()
: just typeassert instead of asserting isa
wait()
I'll remove Kiran's review request, given that Keno is reviewing this PR. I'll also assign this PR to Keno. |
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.
Two minor comments, LGTM otherwise.
A typeassert seems like better style. Given that `typeassert` is a builtin, why not put it to use. See: * JuliaLang#57544 (comment)
728bc54
to
2edc278
Compare
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.
Thanks!
failures look potentially real? |
Real failures, but unrelated to the PR |
Follows up on this PR: