MCPcopy Create free account
hub / github.com/openai/openai-agents-python / _submit

Method _submit

src/agents/mcp/manager.py:43–49  ·  view source on GitHub ↗
(self, action: str, timeout_seconds: float | None)

Source from the content-addressed store, hash-verified

41 await self._submit("cleanup", self._cleanup_timeout_seconds)
42
43 async def _submit(self, action: str, timeout_seconds: float | None) -> None:
44 loop = asyncio.get_running_loop()
45 future: asyncio.Future[None] = loop.create_future()
46 await self._queue.put(
47 _ServerCommand(action=action, timeout_seconds=timeout_seconds, future=future)
48 )
49 await future
50
51 async def _run(self) -> None:
52 while True:

Callers 2

connectMethod · 0.95
cleanupMethod · 0.95

Calls 2

_ServerCommandClass · 0.85
putMethod · 0.80

Tested by

no test coverage detected