api_generator:c++:make callback calls asynchronously