def _set_state(future: Union[(concurrent.futures.Future, Future)], other: Union[(concurrent.futures.Future, Future)]) -> None:
    if isinstance(future, Future):
        _copy_future_state(other, future)
    else:
        _set_concurrent_future_state(future, other)
def _set_state(future: Union[(concurrent.futures.Future, Future)], other: Union[(concurrent.futures.Future, Future)]) -> None:
    if isinstance(future, Future):
        _copy_future_state(other, future)
    else:
        _set_concurrent_future_state(future, other)