5import asyncio
6import atexit
7▶import functools
8import inspect
9import logging
· · ·
216
217
218▶Func = TypeVar("Func", bound=Callable[..., Any])
219
220
· · ·
221▶def shielded(func: Func) -> Func:
222 """Makes so an awaitable method is always shielded from cancellation.
223
· · ·
224 Args:
225▶ func: The function to shield.
226
227 Returns:
· · ·
228▶ The shielded function
229
230 """
+ 13 more matches in this file