Better test::enable_yield_to

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:17 -07:00
parent aca14f6b2b
commit f62ac819f5
6 changed files with 57 additions and 46 deletions
+6 -3
View File
@@ -319,9 +319,12 @@ public:
{
testThrow();
yield_to(&read_test::testFailures, this);
yield_to(&read_test::testRead, this);
yield_to(&read_test::testEof, this);
yield_to([&](yield_context yield){
testFailures(yield); });
yield_to([&](yield_context yield){
testRead(yield); });
yield_to([&](yield_context yield){
testEof(yield); });
testIoService();
}