forked from boostorg/beast
Add optional yield_to arguments
This commit is contained in:
1 parent
6840f5840f
commit
c594bbac3f
5 files changed
+35
-25
No files matched your search
+4
-11
@@ -378,17 +378,10 @@ public:
|
||||
{
|
||||
testThrow();
|
||||
|
||||
yield_to(std::bind(&read_test::testFailures,
|
||||
this, std::placeholders::_1));
|
||||
|
||||
yield_to(std::bind(&read_test::testReadHeaders,
|
||||
this, std::placeholders::_1));
|
||||
|
||||
yield_to(std::bind(&read_test::testRead,
|
||||
this, std::placeholders::_1));
|
||||
|
||||
yield_to(std::bind(&read_test::testEof,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(&read_test::testFailures, this);
|
||||
yield_to(&read_test::testReadHeaders, this);
|
||||
yield_to(&read_test::testRead, this);
|
||||
yield_to(&read_test::testEof, this);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+3
-6
@@ -702,12 +702,9 @@ public:
|
||||
|
||||
void run() override
|
||||
{
|
||||
yield_to(std::bind(&write_test::testAsyncWriteHeaders,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(std::bind(&write_test::testAsyncWrite,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(std::bind(&write_test::testFailures,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(&write_test::testAsyncWriteHeaders, this);
|
||||
yield_to(&write_test::testAsyncWrite, this);
|
||||
yield_to(&write_test::testFailures, this);
|
||||
testOutput();
|
||||
test_std_ostream();
|
||||
testOstream();
|
||||
|
||||
Reference in new issue
Block a user