MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / write_async

Function write_async

example_code/item_077.py:202–203  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

200 try:
201
202 async def write_async(data):
203 await loop.run_in_executor(None, output.write, data)
204
205 def write(data):
206 coro = write_async(data)

Callers 1

writeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected