mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 13:04:18 +02:00
chore: Update SDK documentation (#2717)
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
This commit is contained in:
parent
fb11282e9b
commit
74eb8a0645
40 changed files with 782 additions and 557 deletions
31
docs/python-sdk/fastmcp-utilities-async_utils.mdx
Normal file
31
docs/python-sdk/fastmcp-utilities-async_utils.mdx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: async_utils
|
||||
sidebarTitle: async_utils
|
||||
---
|
||||
|
||||
# `fastmcp.utilities.async_utils`
|
||||
|
||||
|
||||
Async utilities for FastMCP.
|
||||
|
||||
## Functions
|
||||
|
||||
### `gather` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/utilities/async_utils.py#L25" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
||||
|
||||
```python
|
||||
gather(*awaitables: Awaitable[T]) -> list[T] | list[T | BaseException]
|
||||
```
|
||||
|
||||
|
||||
Run awaitables concurrently and return results in order.
|
||||
|
||||
Uses anyio TaskGroup for structured concurrency.
|
||||
|
||||
**Args:**
|
||||
- `*awaitables`: Awaitables to run concurrently
|
||||
- `return_exceptions`: If True, exceptions are returned in results.
|
||||
If False, first exception cancels all and raises.
|
||||
|
||||
**Returns:**
|
||||
- List of results in the same order as input awaitables.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue