generator based actor model