-
-
Notifications
You must be signed in to change notification settings - Fork 747
Get rid of static this for initializing encoding #5423
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
Conversation
std/encoding.d
Outdated
| { | ||
| static shared bool initialized; | ||
| import std.concurrency : initOnce; | ||
| initOnce!initialized({ initialize(); return true; }()); |
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.
initialize -> registerBuiltinSchemes or something like that?
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.
@klickverbot done and made it more local
PetarKirov
left a comment
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.
Looks much better!
f30c6b2 to
78b3328
Compare
CyberShadow
left a comment
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.
Does anyone actually use this module?
|
Why is this not being auto-merged? (@CyberShadow: Hopefully not.) |
|
@klickverbot: the poll only happens every five minutes or on a new status update. |
|
(there is an update in the pipeline to reduce this to one minute) |
Err, why does it need to poll? It should be completely event-driven. |
|
(Ah, I guess I hadn't approved it when adding the label, then…) |
I guess currently the approve events aren't properly handled as such or there is some bouncing to avoid over-using the GH API (I haven't looked at the code for a longer time) |
std.xml 😉 |
*cough* #5382 |
|
Oh cool! I didn't realize that was the only reference to std.encoding in std.xml. I'll take another look. |
BTW as we all agree that std.xml isn't phobosque - why don't we simply move it to undead? People who are suicidal and really want to use, are then automatically warned, but can still use it without any breakage... |
|
Our general policy is deprecate stuff that has immediate replacement. |
For reliability, events can be missed, then it'd hang forever. |
Then use events + polling to query any missed events. https://developer.github.com/v3/activity/events/ |
Ugh encoding...