horoc opened a new pull request, #917:
URL: https://github.com/apache/rocketmq-client-go/pull/917

   ## What is the purpose of the change
   
   #916 
   
   <img width="1001" alt="image" 
src="https://user-images.githubusercontent.com/63457588/189415479-00db5303-ac96-4af5-8642-4ff8e1dab0bd.png";>
   
   ```RequestAsync``` has an argument ```callback``` which is an internal 
function type.
   
   Maybes it's better to define an API function without importing an internal 
definition. 
   
   For example:
   1. When I tried to implement a mock producer to do unit testing of the 
producer, it was almost impossible.
   2. When I tried to implement a wrapper producer which integrated some custom 
logic, it was also very hard to do.
   
   ## Brief changelog
   
   change callback type to raw function definition.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to