Parameters

This function takes the following parameters:

listener

The token change event listener.

args

Arguments to pass to the listener.

dispatch_to_sep_thread

Call the listener in a separate thread from an internal thread pool.
This allows am_notify to return immediately upon parsing the notification
message rather than waiting for the listener functions to finish before returning.