Open msimberg opened 1 year ago
It may be possible to dispatch to the default implementation using the new transform_sender
mechanism in stdexec (https://ericniebler.github.io/wg21/D2999R1.html). The process would look like this:
schedule_from
for thread_pool_scheduler
/thread_pool_domain
via transform_sender
transform_sender
and default_domain
schedule
inside the default implementation of schedule_from
The transition in stdexec is not fully complete, so we may have to wait a bit before trying it out.
We currently disable the
schedule_from
customization forthread_pool_scheduler
with stdexec: https://github.com/pika-org/pika/blob/cb8ebe0667c903cd3155201b2a356f0e15b19855/libs/pika/executors/include/pika/executors/thread_pool_scheduler.hpp#L269-L287. We should make sure the customization is used even with stdexec enabled. In the case of this example,transfer
should inherit of thescoped_annotation
if no annotation is set on thescheduler
(pseudo code):