Skip to main content

Module callback

Module callback 

Source
Expand description

Producer callback interface.

Translated from org.apache.kafka.clients.producer.Callback.

Traits§

Callback
A callback interface that the user can implement to allow code to execute when the request is complete. This callback will generally execute in the background I/O task so it should be fast.

Functions§

new
Returns a Callback that calls function, standing in for a Java lambda implementing Callback: function is on_completion, and every other method keeps its default. A method Java adds later as an overload of onCompletion gets its own factory, with_<parameter>, taking a function of that overload’s shape. The closure’s parameter types are inferred: