from pytools import run_async

def print_new(store):
    out = store.read_new().strip()
    if out:
        print out

run_async("./async_infinite.sh",
          timeout=5,
          handler=print_new)
Exemple #2
0
from pytools import run_async

def print_new(store):
    out = store.read_new().strip()
    if out:
        print out

run_async("./async.sh",
          handler=print_new)
Exemple #3
0
from pytools import run_async


def print_new(store):
    out = store.read_new().strip()
    if out:
        print out


run_async("./async_infinite.sh", timeout=5, handler=print_new)