basiliscos / cpp-rotor

Event loop friendly C++ actor micro-framework, supervisable
MIT License
344 stars 33 forks source link

per actor policy #12

Closed basiliscos closed 4 years ago

basiliscos commented 5 years ago

The various actor-spawning pieces are scattered across API:

  1. init-timeout is provided in create_actor
  2. shutdown-timeout is configure in per-actor
  3. init-failure and shutdown-failure triggers are hard-coded in supervisor.

The idea is to have an per-actor dedicated class (transferred per actor constructor) with the appropriate settings: