Skip to main content

protocols.dao.RaceConditionAttempt

A single try yielded by race_condition_retries.

Usage

Source

protocols.dao.RaceConditionAttempt()

Used as a context manager: suppresses a PreconditionFailedError raised in its block, keeps it in error, and records whether the block was entered and whether it finished without one.

Methods

Name Description
__enter__() Mark the attempt as entered; the outcome is recorded on exit.
__exit__() Record the outcome and suppress a PreconditionFailedError.

__enter__()

Mark the attempt as entered; the outcome is recorded on exit.

Usage

Source

__enter__()


__exit__()

Record the outcome and suppress a PreconditionFailedError.

Usage

Source

__exit__(exc_type, exc_value, traceback)