示例#1
0
文件: api.py 项目: armenzg/mozpool
def ping(device_name):
    """Like ping, but block until completion and return the success
    status"""
    return wait_for_async(lambda cb :
            start_ping(device_name, cb))
示例#2
0
文件: api.py 项目: armenzg/mozpool
def poweroff(device_name, max_time=30):
    """Like start_poweroff, but block until completion and return the success
    status"""
    return wait_for_async(lambda cb :
            start_poweroff(device_name, cb, max_time))