Skip to content

Commit 0e4da7f

Browse files
committed
change starts_on to lower to an expression involving continues_on
this is so that `starts_on` can benefit from any customization done with `continues_on`.
1 parent daf12bc commit 0e4da7f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

include/stdexec/__detail/__starts_on.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "__diagnostics.hpp"
2323
#include "__domain.hpp"
2424
#include "__env.hpp"
25+
#include "__just.hpp"
2526
#include "__let.hpp"
2627
#include "__schedulers.hpp"
2728
#include "__senders_core.hpp"
@@ -77,7 +78,8 @@ namespace stdexec {
7778
static_cast<_Sender&&>(__sndr),
7879
[]<class _Data, class _Child>(__ignore, _Data&& __data, _Child&& __child) -> auto {
7980
// This is the heart of starts_on: It uses `let_value` to schedule `__child` on the given scheduler:
80-
return let_value(schedule(__data), __detail::__always{static_cast<_Child&&>(__child)});
81+
return let_value(
82+
continues_on(just(), __data), __detail::__always{static_cast<_Child&&>(__child)});
8183
});
8284
}
8385
};

0 commit comments

Comments
 (0)