Skip to content

Commit

Permalink
Merge pull request #96 from Hnasar/patch-1
Browse files Browse the repository at this point in the history
Add 'abandon_on_cancel' to to_thread.run_sync
  • Loading branch information
tjstum authored Sep 24, 2024
2 parents 0936804 + 3646ca4 commit c7d9707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trio-stubs/to_thread.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def current_default_thread_limiter() -> trio.CapacityLimiter: ...
async def run_sync(
sync_fn: Union[Callable[..., _T], Callable[[VarArg()], _T]],
*args: Any,
cancellable: bool = False,
abandon_on_cancel: bool = False,
limiter: Optional[trio.CapacityLimiter] = None,
) -> _T: ...

0 comments on commit c7d9707

Please sign in to comment.