def wait_write(io):
    c = IOChannel(io, 1)
    try:
        return c.receive()
    finally:
        c.close()
wrapper around IOChannel to only wait when a device become
dataset/ETHPy150Open benoitc/flower/flower/io.py/wait_write