mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Some experiments
This commit is contained in:
parent
5dfe388f7f
commit
e4ef3ccefb
@ -66,7 +66,7 @@ struct my_callable {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
int main(int, char**) {
|
void some_requests() {
|
||||||
http_request("github.com").next(my_callable{});
|
http_request("github.com").next(my_callable{});
|
||||||
|
|
||||||
http_request("github.com") | [](std::string) {
|
http_request("github.com") | [](std::string) {
|
||||||
@ -115,13 +115,18 @@ int main(int, char**) {
|
|||||||
.fail([](std::error_condition) {
|
.fail([](std::error_condition) {
|
||||||
// ...
|
// ...
|
||||||
});
|
});
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void teststh() {
|
int main(int, char**) {
|
||||||
cti::map_pack([](auto&& continuable) {
|
|
||||||
|
std::vector<int> vc{1, 2, 3};
|
||||||
|
|
||||||
|
cti::map_pack(
|
||||||
|
[](auto&& continuable) {
|
||||||
// ...
|
// ...
|
||||||
return 0;
|
return 0;
|
||||||
});
|
},
|
||||||
|
vc);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user