MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / controller_impl

Function controller_impl

robot/middleman/driver.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84behavior 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
96struct config : actor_system_config {
97 bool server = false;

Callers

nothing calls this directly

Calls 5

attach_functorMethod · 0.80
unpublishMethod · 0.80
set_shutdown_flagFunction · 0.70
middlemanMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected