human
How do I know when an observer is being notified?
assistant
You can use the notify() method to check if the observer is being notified. If it is, you can call the observe() method to perform the action.