MCPcopy
hub / github.com/python-trio/trio / abort_fn

Method abort_fn

src/trio/_channel.py:363–366  ·  view source on GitHub ↗
(_: RaiseCancelT)

Source from the content-addressed store, hash-verified

361 task.custom_sleep_data = self
362
363 def abort_fn(_: RaiseCancelT) -> Abort:
364 self._tasks.remove(task)
365 del self._state.receive_tasks[task]
366 return trio.lowlevel.Abort.SUCCEEDED
367
368 # Not strictly guaranteed to return ReceiveType, but will do so unless
369 # you intentionally reschedule with a bad value.

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected