asyncserial/abstract_async_wrapper.py
async def write(self, towrite: bytes, await_blocking=False):
        """
        Appends towrite to the write queue

        >>> await test.write(b"HELLO")
        # Returns without wait time
        >>> await test.write(b"HELLO", await_blocking = True)
        # Returns when the bufer is flushed

        :param towrite:      Write buffer
        :param await_blocking:  wait for everything to be written
        """

        await self._write(towrite)

        # Wait for the output buffer to be flushed if requested
        if await_blocking:
            return await self.flush()
async def write(self, towrite: bytes, await_blocking=False):
        await self._write(towrite)

        # Wait for the output buffer to be flushed if requested
        if await_blocking:
            return await self.flush()
async def write ( self , towrite : bytes , await_blocking = False ) : await self . _write ( towrite ) # Wait for the output buffer to be flushed if requested if await_blocking : return await self . flush ( )
Appends towrite to the write queue

        >>> await test.write(b"HELLO")
        # Returns without wait time
        >>> await test.write(b"HELLO", await_blocking = True)
        # Returns when the bufer is flushed

        :param towrite:      Write buffer
        :param await_blocking:  wait for everything to be written
Appends towrite to the write queue