<h2class="anchor anchorWithStickyNavbar_JmGV"id="parameters">Parameters<ahref="#parameters"class="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="context">context<ahref="#context"class="hash-link"aria-label="Direct link to context"title="Direct link to context"></a></h3>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="eventcollect">eventCollect<ahref="#eventcollect"class="hash-link"aria-label="Direct link to eventCollect"title="Direct link to eventCollect"></a></h3>
<p>a function called when new build logs are emitted or new events happen during the build operation. The value of <code>eventName</code> can be either <code>stream</code> (and <code>data</code> contains the logs), or <code>finish</code> indicating the end of the build operation, or <code>error</code> in case of build error (and <code>data</code> contains the error message)</p>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="options">options?<ahref="#options"class="hash-link"aria-label="Direct link to options?"title="Direct link to options?"></a></h3>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="returns">Returns<ahref="#returns"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h2>
<divclass="text-xs">The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <ahref="https://www.linuxfoundation.org/trademark-usage/"> Trademark Usage</a> page.