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:
/// Called whenever the actor system spawns a new actor. The system calls this
/// member function after the constructor of `self` has completed but before
/// constructing the behavior .
/// constructing the behavior.
/// @param self The new actor.
/// @param parent Points to the parent actor unless `self` is a top-level
/// actor (in this case, `parent` has the value `nullptr`).
......@@ -53,7 +53,7 @@ public:
const mailbox_element& element)
= 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 result Stores whether the actor consumed, skipped or dropped the
/// message.
......
......@@ -303,7 +303,7 @@ public:
/// Provides system-wide callbacks for several actor operations.
/// @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;
// -- run-time type information ----------------------------------------------
......
......@@ -140,7 +140,7 @@ CAF_TEST(record actor messaging) {
auto b = self->spawn(bar);
self->send(b, "hello bar");
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);
......
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