MCPcopy Index your code
hub / github.com/RustPython/RustPython / connect_write_pipe

Method connect_write_pipe

Lib/asyncio/base_events.py:1706–1720  ·  view source on GitHub ↗
(self, protocol_factory, pipe)

Source from the content-addressed store, hash-verified

1704 return transport, protocol
1705
1706 async def connect_write_pipe(self, protocol_factory, pipe):
1707 protocol = protocol_factory()
1708 waiter = self.create_future()
1709 transport = self._make_write_pipe_transport(pipe, protocol, waiter)
1710
1711 try:
1712 await waiter
1713 except:
1714 transport.close()
1715 raise
1716
1717 if self._debug:
1718 logger.debug('Write pipe %r connected: (%r, %r)',
1719 pipe.fileno(), transport, protocol)
1720 return transport, protocol
1721
1722 def _log_subprocess(self, msg, stdin, stdout, stderr):
1723 info = [msg]

Callers

nothing calls this directly

Calls 5

create_futureMethod · 0.95
closeMethod · 0.45
debugMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected