asyncio.AbstractEventLoop.connect_write_pipe()

coroutine AbstractEventLoop.connect_write_pipe(protocol_factory, pipe)

Register write pipe in eventloop.

protocol_factory should instantiate object with BaseProtocol interface. pipe is file-like object. Return pair (transport, protocol), where transport supports WriteTransport interface.

With SelectorEventLoop event loop, the pipe is set to non-blocking mode.

This method is a coroutine.

doc_python
2016-10-07 17:26:28
Comments
Leave a Comment

Please login to continue.