Commit e608ad30 authored by Dominik Charousset's avatar Dominik Charousset

Apply suggestions from code review

Co-Authored-By: default avatarJoseph Noir <josephnoir@users.noreply.github.com>
parent abfeb063
...@@ -32,7 +32,7 @@ public: ...@@ -32,7 +32,7 @@ public:
/// Called whenever the actor system spawns a new actor. The system calls this /// Called whenever the actor system spawns a new actor. The system calls this
/// member function after the constructor of `self` has completed but before /// member function after the constructor of `self` has completed but before
/// constructing the behavior . /// constructing the behavior.
/// @param self The new actor. /// @param self The new actor.
/// @param parent Points to the parent actor unless `self` is a top-level /// @param parent Points to the parent actor unless `self` is a top-level
/// actor (in this case, `parent` has the value `nullptr`). /// actor (in this case, `parent` has the value `nullptr`).
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
const mailbox_element& element) const mailbox_element& element)
= 0; = 0;
/// Called whenever an actor processed an element from its mailbox. /// Called after an actor processed an element from its mailbox.
/// @param self The current actor. /// @param self The current actor.
/// @param result Stores whether the actor consumed, skipped or dropped the /// @param result Stores whether the actor consumed, skipped or dropped the
/// message. /// message.
......
...@@ -303,7 +303,7 @@ public: ...@@ -303,7 +303,7 @@ public:
/// Provides system-wide callbacks for several actor operations. /// Provides system-wide callbacks for several actor operations.
/// @experimental /// @experimental
/// @note has no effect unless building CAF with CAF_ENABLE_ACTOR_PROFILER /// @note Has no effect unless building CAF with CAF_ENABLE_ACTOR_PROFILER.
actor_profiler* profiler = nullptr; actor_profiler* profiler = nullptr;
// -- run-time type information ---------------------------------------------- // -- run-time type information ----------------------------------------------
......
...@@ -140,7 +140,7 @@ CAF_TEST(record actor messaging) { ...@@ -140,7 +140,7 @@ CAF_TEST(record actor messaging) {
auto b = self->spawn(bar); auto b = self->spawn(bar);
self->send(b, "hello bar"); self->send(b, "hello bar");
return { return {
[](const std::string& str) mutable { CAF_CHECK_EQUAL(str, "hello foo"); }, [](const std::string& str) { CAF_CHECK_EQUAL(str, "hello foo"); },
}; };
}; };
sys.spawn(foo); sys.spawn(foo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment