The method attempts to write the data to the underlying socket immediately. If that fails, the data is queued in an internal write buffer until it can be sent.
asyncio/StreamWriter.write
StreamWriter.write