Title
affine_on shouldn't forward the stop token to the scheduling operation
Status
new
Section
[exec.affine.on]
Submitter
Dietmar Kühl

Created on 2025-08-31.00:00:00 last changed 2 weeks ago

Messages

Date: 2025-08-31.00:00:00

The main purpose of affine_on is to make sure work resumes on a specific execution context. The scheduling operation may take some time and work may be cancelled in the meantime. If this cancellation causes the scheduling to be cancelled work cleaning up after the cancellation would be executed on the wrong execution context. Thus, the stop token from the receiver's environment should only be forwarded when connecting the sender but not to the scheduling operation.

History
Date User Action Args
2025-08-31 00:00:00admincreate