lisa.wlgen.rta.task_factory#
- lisa.wlgen.rta.task_factory(f)[source]#
Coroutine function decorator allowing to create tasks using actions from both
RTAMonadandlisa.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.Randomto use.
If the user-defined coroutine function returns
None, the return value will be replaced by anRTAPhaseBaserepresenting all the phases that got added while running the function, on which the current active properties set withWithPropertiesare applied.See also
lisa.wlgen.rtafor an example.