(all|any)_of() should be able to handle empty lists and generators

Issue #31 resolved
Stefan Scherfke
created an issue

Currently, util.all_of() and util.any_of() only accept lists with at least one process, because they need a reference to the env which they get from the first process.

If theses functions were methods of Environment, we could create the necessary event(s) more easily and without any magic.

Comments (7)

  1. luensdorf

    Scratch that! Condition is an event itself, we don't need another event. The condition should just trigger itself immediately if there are no events.

  2. Log in to comment