mirror of
https://github.com/Naios/continuable.git
synced 2026-02-06 09:49:47 +08:00
other thoughts
This commit is contained in:
parent
6ef4c43853
commit
cf07fca0dc
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <tuple>
|
||||||
|
|
||||||
template <typename...>
|
template <typename...>
|
||||||
struct Continuable;
|
struct Continuable;
|
||||||
@ -109,6 +110,10 @@ void test_mockup()
|
|||||||
.then([](std::string github, std::string google, ResultSet user)
|
.then([](std::string github, std::string google, ResultSet user)
|
||||||
{
|
{
|
||||||
// result bla bla
|
// result bla bla
|
||||||
|
return std::forward_as_tuple(github.empty(), std::move(google), std::move(user));
|
||||||
|
})
|
||||||
|
.then([](bool hasContent, std::string google, ResultSet user)
|
||||||
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
// Continuable<> c11 = || std::move(c3);
|
// Continuable<> c11 = || std::move(c3);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user