Remove f2, add ofats::any_invocable
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include "AsyncSocketData.h"
|
||||
#include "ProxyParser.h"
|
||||
|
||||
#include "f2/function2.hpp"
|
||||
#include "MoveOnlyFunction.h"
|
||||
|
||||
namespace uWS {
|
||||
|
||||
@@ -43,9 +43,9 @@ private:
|
||||
};
|
||||
|
||||
/* Per socket event handlers */
|
||||
fu2::unique_function<bool(size_t)> onWritable;
|
||||
fu2::unique_function<void()> onAborted;
|
||||
fu2::unique_function<void(std::string_view, bool)> inStream; // onData
|
||||
MoveOnlyFunction<bool(size_t)> onWritable;
|
||||
MoveOnlyFunction<void()> onAborted;
|
||||
MoveOnlyFunction<void(std::string_view, bool)> inStream; // onData
|
||||
/* Outgoing offset */
|
||||
size_t offset = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user