MCPcopy Index your code
hub / github.com/microsoft/playwright-python / cb

Method cb

playwright/_impl/_connection.py:230–234  ·  view source on GitHub ↗
(task: asyncio.Task)

Source from the content-addressed store, hash-verified

228 current_task = asyncio.current_task()
229
230 def cb(task: asyncio.Task) -> None:
231 if current_task:
232 current_task.remove_done_callback(cb)
233 if task.cancelled():
234 self.future.cancel()
235
236 if current_task:
237 current_task.add_done_callback(cb)

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected