lisa.wlgen.rta.task_factory#

lisa.wlgen.rta.task_factory(f)[source]#

Coroutine function decorator allowing to create tasks using actions from both RTAMonad and lisa.fuzz.GenMonad.

Calling the decorated function will result in another callable that can be called once with:

  • seed: Seed to use to automatically initialize a random.Random.

  • rng: Alternatively, an existing instance of random.Random to use.

If the user-defined coroutine function returns None, the return value will be replaced by an RTAPhaseBase representing all the phases that got added while running the function, on which the current active properties set with WithProperties are applied.

See also

lisa.wlgen.rta for an example.