@ctask
def expect(c, subroutine, pty=True):
    c.run("python signaling.py {0}".format(subroutine), pty=pty)
Call a subroutine within signaling.py, then sleep, waiting for a signal.
dataset/ETHPy150Open pyinvoke/invoke/integration/_support/signal_tasks.py/expect