lisa.wlgen.rta.task_factory#
- lisa.wlgen.rta.task_factory(f)[source]#
Coroutine function decorator allowing to create tasks using actions from both
RTAMonad
andlisa.fuzz.GenMonad
.Calling the decorated function will result in another callable that can be called once with:
seed
: Seed to use to automatically initialize arandom.Random
.rng
: Alternatively, an existing instance ofrandom.Random
to use.
If the user-defined coroutine function returns
None
, the return value will be replaced by anRTAPhaseBase
representing all the phases that got added while running the function, on which the current active properties set withWithProperties
are applied.See also
lisa.wlgen.rta
for an example.