squid
squid copied to clipboard
Maintenance: move async and events code to libasync
Move Async and Events related code to own library in src/async
Note: I have intentionally avoided creating Async namespace, this PR touches so much code already. If there is consensus to do it, I'll do that as a followup PR
The idea for this PR stems from a comment in PR #1548
I have intentionally avoided creating Async namespace, this PR touches so much code already.
FWIW, I do not think creating Async namespace is a good idea (in any PR).
I have intentionally avoided creating Async namespace, this PR touches so much code already.
FWIW, I do not think creating Async namespace is a good idea (in any PR).
And yet it was you who decided all these objects should consume the Async
prefix (a.k.a. namespace).
You have a better alternative to rename them as?
IMO the AsyncJob
and related pieces are sufficiently complex and self-contained to deserve their own library+namespace like this.
However, @kinkie please do not merge the EventLoop
mechanism into it. That should have a separate library of its own.
@kinkie, also be aware the AsyncEngine
is an interface for the Engine
mechanism, not the part of AsyncJob
mechanism.
I have intentionally avoided creating Async namespace, this PR touches so much code already.
FWIW, I do not think creating Async namespace is a good idea (in any PR).
Sure, but could you highlight why? It would be a deviation from standard practice, isn't it?