June 2017
Beginner to intermediate
274 pages
6h 49m
English
There's one more piece we need before we start putting things together and that's a way to display a stream of animal events. Another observer is the obvious choice for that and it turns out to be quite easy, as you can see in the following code example:

The code for a new observer is similar to what we've already seen; all we need is a constructor and an appropriate on_event method.
Read now
Unlock full access