Skip to main content

allow_join_result

A context manager that temporarily allows joining task results by disabling the block check and restoring the previous state upon exit.

def allow_join_result() - > contextmanager

Temporarily enables the ability to wait for task results within a context where joining would otherwise be blocked. This is used to prevent deadlocks or runtime errors when nested task execution requires synchronization.

Returns​

TypeDescription
contextmanagerA context manager that restores the original 'task_join_will_block' state upon exit.