MCPcopy Index your code
hub / github.com/python/cpython / factory

Function factory

Lib/asyncio/streams.py:78–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 loop = events.get_running_loop()
77
78 def factory():
79 reader = StreamReader(limit=limit, loop=loop)
80 protocol = StreamReaderProtocol(reader, client_connected_cb,
81 loop=loop)
82 return protocol
83
84 return await loop.create_server(factory, host, port, **kwds)
85

Callers

nothing calls this directly

Calls 2

StreamReaderClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…