urator">T</a>&gt;&nbsp;disposeWith&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function" class="externalLink">Consumer</a>&lt;<a href="ProducerConfigurator.html" title="type parameter in ProducerConfigurator">T</a>&gt;&nbsp;callback)</pre>
<div class="block">Set a callback to destroy the produced instance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>callbac