shielded#
- langchain_core.callbacks.manager.shielded(func: Func) Func [source]#
Makes so an awaitable method is always shielded from cancellation.
- Parameters:
func (Callable) – The function to shield.
- Returns:
The shielded function
- Return type:
Callable