mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 12:39:32 +00:00
docs: community docstring updates (#21040)
Added missed docstrings. Updated docstrings to consistent format.
This commit is contained in:
@@ -11,6 +11,16 @@ if TYPE_CHECKING:
|
||||
async def wrapped_response_future(
|
||||
func: Callable[..., ResponseFuture], *args: Any, **kwargs: Any
|
||||
) -> Any:
|
||||
"""Wrap a Cassandra response future in an asyncio future.
|
||||
|
||||
Args:
|
||||
func: The Cassandra function to call.
|
||||
*args: The arguments to pass to the Cassandra function.
|
||||
**kwargs: The keyword arguments to pass to the Cassandra function.
|
||||
|
||||
Returns:
|
||||
The result of the Cassandra function.
|
||||
"""
|
||||
loop = asyncio.get_event_loop()
|
||||
asyncio_future = loop.create_future()
|
||||
response_future = func(*args, **kwargs)
|
||||
|
Reference in New Issue
Block a user