Rename Event.set() to Event.setIfInitialized()#15800
Conversation
|
Thanks for your pull request and interest in making D better, @denizzzka! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#15800" |
66a7716 to
755cfd9
Compare
|
Doesn't edit: indeed it does, wait just returns false immediately if it has not been initialized, regardless of if it has been set. same as how set does nothing if it has been uninitialized. so why is set different than wait? |
During debug I comed across I can rename |
Proposed to rename
Event.set()toEvent.setIfInitialized()to better reflect behavior of this method.Yes, it really drives me crazy when setting just doesn’t work because event isn't initialized.
Previously I already tried to do something with it: dlang/druntime#3273