human
I wrote the below code

    lc = None
    def _check():
        if (not (True in [x.transport.connected for x in protocols])):
            lc.stop()
    lc = task.LoopingCall(_check)
    lc.clock = reactor
    return lc.start(0.01, now=True)

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def waitUntilAllDisconnected(reactor, protocols):