def threaded_file_reader(*args):
    """
    Operate a read_thread_func in another thread. Block with statement exit
    until the function completes.
    """
    reader_thread = Thread(target=reader_thread_func, args=args)
    reader_thread.start()
    try:
        yield
    finally:
        reader_thread.join()

    Operate a read_thread_func in another thread. Block with statement exit
    until the function completes.
    
recipes/Python/577083_POSIX_context_manager_temporarily_silence_or/recipe-577083.py