Skip to content

Commit 236cb0f

Browse files
don't deprecate
1 parent c119c2a commit 236cb0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

newsfragments/2841.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
To better reflect the underlying thread handling semantics,
22
`trio.to_thread.run_sync` gained a new keyword argument ``abandon_on_cancel``
3-
that overrides the older (now deprecated) ``cancellable`` flag.
3+
that overrides the older ``cancellable`` flag.

trio/_threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def to_thread_run_sync( # type: ignore[misc]
200200
arguments, use :func:`functools.partial`.
201201
abandon_on_cancel (bool): Whether to abandon this thread upon
202202
cancellation of this operation. See discussion below.
203-
cancellable (bool): *Deprecated* synonym for ``abandon_on_cancel``.
203+
cancellable (bool): Synonym for ``abandon_on_cancel``.
204204
Providing a value to ``abandon_on_cancel`` overrides this argument.
205205
thread_name (str): Optional string to set the name of the thread.
206206
Will always set `threading.Thread.name`, but only set the os name

0 commit comments

Comments
 (0)