Observer used within a stateful computation.
Defines a path to observe and a function to update the state of the computation whenever an event with a path matching the one being observed occurs.
Path to observe.
Updates the computation's state given the previous state and the event whose path matches the path being observed.