Proxy callbacks for asynchronous functions.