Skip to content

Commit c7d9707

Browse files
authored
Merge pull request #96 from Hnasar/patch-1
Add 'abandon_on_cancel' to to_thread.run_sync
2 parents 0936804 + 3646ca4 commit c7d9707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trio-stubs/to_thread.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ def current_default_thread_limiter() -> trio.CapacityLimiter: ...
1010
async def run_sync(
1111
sync_fn: Union[Callable[..., _T], Callable[[VarArg()], _T]],
1212
*args: Any,
13-
cancellable: bool = False,
13+
abandon_on_cancel: bool = False,
1414
limiter: Optional[trio.CapacityLimiter] = None,
1515
) -> _T: ...

0 commit comments

Comments
 (0)