assert_will_not_block
Raises a RuntimeError if the current task join operation would result in a blocking state.
def assert_will_not_block() - > null
Ensures that the current execution context can proceed without blocking by raising a RuntimeError if a task join operation would cause a hang.
Returns
| Type | Description |
|---|---|
null | Nothing if the operation is safe to proceed. |