mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 08:46: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") | [](std::string) {
|
||||
@ -115,13 +115,18 @@ int main(int, char**) {
|
||||
.fail([](std::error_condition) {
|
||||
// ...
|
||||
});
|
||||
}
|
||||
|
||||
int main(int, char**) {
|
||||
|
||||
std::vector<int> vc{1, 2, 3};
|
||||
|
||||
cti::map_pack(
|
||||
[](auto&& continuable) {
|
||||
// ...
|
||||
return 0;
|
||||
},
|
||||
vc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void teststh() {
|
||||
cti::map_pack([](auto&& continuable) {
|
||||
// ...
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user