RobertIndie commented on PR #1036: URL: https://github.com/apache/pulsar-client-go/pull/1036#issuecomment-1614604320
> Why not verify that callback cannot be nil at the beginning of the `producer.SendAsync ` method? Do you mean to throw an error when the callback is nil? The user is currently able to pass the nil as the callback. If we verify it and raise the error, then it will introduce the breaking change here. I think it's helpful to allow the user to pass the nil callback in some cases. -- 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]
