lisa.fuzz.retry_until#

lisa.fuzz.retry_until(cond)[source]#

Returns an awaitable that will signify to the lisa.fuzz.Gen monad to retry the computation until cond is True. This is used to enforce arbitrary constraints on generated data.

Note

If possible, it’s a better idea to generate the data in a way that satisfy the constraints, as retrying can happen an arbitrary number of time and thus become quite costly.