Skip to content

Commit

Permalink
Add 'abandon_on_cancel' to to_thread.run_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Hnasar authored Sep 16, 2024
1 parent 0936804 commit e604590
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trio-stubs/to_thread.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def current_default_thread_limiter() -> trio.CapacityLimiter: ...
async def run_sync(
sync_fn: Union[Callable[..., _T], Callable[[VarArg()], _T]],
*args: Any,
abandon_on_cancel: bool = False,
cancellable: bool = False,
limiter: Optional[trio.CapacityLimiter] = None,
) -> _T: ...

0 comments on commit e604590

Please sign in to comment.