Skip to content

Commit 0978c24

Browse files
authored
New issue from Dietmar Kühl: affine_on shouldn't forward the stop token to the scheduling operation
1 parent 12dce2e commit 0978c24

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

xml/issue4332.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4332" status="New">
5+
<title><code>affine_on</code> shouldn't forward the stop token to the scheduling operation</title>
6+
<section><sref ref="[exec.affine.on]"/></section>
7+
<submitter>Dietmar Kühl</submitter>
8+
<date>31 Aug 2025</date>
9+
<priority>99</priority>
10+
11+
<discussion>
12+
<p>
13+
The main purpose of <code>affine_on</code> is to make sure work
14+
resumes on a specific execution context. The scheduling operation
15+
may take some time and work may be cancelled in the meantime. If
16+
this cancellation causes the scheduling to be cancelled work cleaning
17+
up after the cancellation would be executed on the wrong execution
18+
context. Thus, the stop token from the receiver's environment should
19+
only be forwarded when <code>connect</code>ing the sender but not
20+
to the scheduling operation.
21+
</p>
22+
</discussion>
23+
24+
<resolution>
25+
<p>
26+
</p>
27+
</resolution>
28+
29+
</issue>

0 commit comments

Comments
 (0)