Better test::enable_yield_to

This commit is contained in:
Vinnie Falco
2017-05-26 17:05:17 -07:00
parent 9a8bcb7040
commit 9796106e53
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();
}