fastmcp.utilities.async_utils
Async utilities for FastMCP.
Functions
is_coroutine_function
inspect.iscoroutinefunction returns False for
functools.partial objects wrapping an async function on Python < 3.12.
This helper unwraps any layers of partial before checking.
call_sync_fn_in_threadpool
gather
*awaitables: Awaitables to run concurrentlyreturn_exceptions: If True, exceptions are returned in results. If False, first exception cancels all and raises.
- List of results in the same order as input awaitables.

