| 82 | } |
| 83 | |
| 84 | behavior controller_impl(event_based_actor* self) { |
| 85 | self->attach_functor([](const error&) { set_shutdown_flag(0); }); |
| 86 | return { |
| 87 | [self](ok_atom) -> result<void> { |
| 88 | set_shutdown_flag(0); |
| 89 | if (auto ok = self->system().middleman().unpublish(actor{self}); !ok) |
| 90 | return std::move(ok.error()); |
| 91 | return {}; |
| 92 | }, |
| 93 | }; |
| 94 | } |
| 95 | |
| 96 | struct config : actor_system_config { |
| 97 | bool server = false; |
nothing calls this directly
no test coverage detected