@contextmanager
def allow_join_result():
    reset_value = task_join_will_block()
    _set_task_join_will_block(False)
    try:
        (yield)
    finally:
        _set_task_join_will_block(reset_value)
@contextmanager
def allow_join_result():
    reset_value = task_join_will_block()
    _set_task_join_will_block(False)
    try:
        (yield)
    finally:
        _set_task_join_will_block(reset_value)