File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
reference/execution/execution Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,17 @@ int main()
8080{
8181 { // 関数呼び出し
8282 ex::sender auto snd0 = ex::just('C', 2);
83- ex::sender auto snd1 = ex::then(snd0, [](char ch, int s) {
84- return ch + std::string(2 , '+');
83+ ex::sender auto snd1 = ex::then(snd0, [](char ch, int n) {
84+ return ch + std::string(n , '+');
8585 });
8686 auto [s] = std::this_thread::sync_wait(snd1).value();
8787 std::println("{}", s);
8888 }
8989
9090 { // パイプライン記法
9191 ex::sender auto sndr = ex::just('C', 2);
92- | ex::then([](char ch, int s) {
93- return ch + std::string(2 , '+');
92+ | ex::then([](char ch, int n) {
93+ return ch + std::string(n , '+');
9494 });
9595 auto [s] = std::this_thread::sync_wait(sndr).value();
9696 std::println("{}", s);
You can’t perform that action at this time.
0 commit comments