Remove f2, add ofats::any_invocable
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ public:
|
||||
}
|
||||
|
||||
/* Corks the response if possible. Leaves already corked socket be. */
|
||||
void cork(fu2::unique_function<void()> &&handler) {
|
||||
void cork(MoveOnlyFunction<void()> &&handler) {
|
||||
if (!Super::isCorked() && Super::canCork()) {
|
||||
Super::cork();
|
||||
handler();
|
||||
|
||||
Reference in New Issue
Block a user