The event API that I described in my OSCON 2014 talk