• jhaydaman's avatar
    bpo-33238: Add InvalidStateError to concurrent.futures. (GH-7056) · 0a28c0d1
    jhaydaman yazdı
    Future.set_result and Future.set_exception now raise InvalidStateError
    if the futures are not pending or running. This mirrors the behavior
    of asyncio.Future, and prevents AssertionErrors in asyncio.wrap_future
    when set_result is called multiple times.
    0a28c0d1
__init__.py 1.52 KB