Commit 228c4c59 authored by Dominik Charousset's avatar Dominik Charousset

Remove outdated example

parent 100e4853
......@@ -28,7 +28,6 @@ add(message_passing promises)
add(message_passing calculator)
add(message_passing delegating)
add(message_passing fixed_stack)
add(message_passing prioritizing)
add(message_passing dancing_kirby)
# dynamic behavior changes using 'become'
......
#include "caf/all.hpp"
using std::endl;
using namespace caf;
behavior foo(event_based_actor* self) {
self->send(self, "world");
self->send<message_priority::high>(self, "hello");
// when spawning `foo` with priority_aware flag, it will print "hello" first
return {
[=](const std::string& str) {
aout(self) << str << endl;
}
};
}
void caf_main(actor_system& system) {
scoped_actor self{system};
aout(self) << "spawn foo" << endl;
self->spawn(foo);
self->await_all_other_actors_done();
aout(self) << "spawn foo again with priority_aware flag" << endl;
self->spawn<priority_aware>(foo);
}
CAF_MAIN()
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