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

Method acquire

src/trio/_tests/test_sync.py:510–511  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

508 self.s.send_nowait(None)
509
510 async def acquire(self) -> None:
511 await self.s.send(None)
512
513 def release(self) -> None:
514 self.r.receive_nowait()

Callers 3

do_acquireFunction · 0.45

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected