#cp.watcher
This extension provides support for setting up 'event watchers'.
For example, if you want to allow interested parties to watch for 'update' events, you might have something like this:
Then, your other code could get notifications like so:
Then, whenever thing.update(xxx)
is called, the watcher will output "New value is xxx"
.
#API Overview
Functions - API calls offered directly by the extension
Methods - API calls which can only be made on an object returned by a constructor