
<h1 id="wait-for">
 <a href="#/api/device/waitFor" class="anchor">
   <span>waitFor</span>
  </a>
</h1>

<div class="signature">

<hr>

  <div class="definition-container">
    <div class="definition">
      <code class="desktop-only"><span class="token keyword">void</span> waitFor(<a href="#/api/streamTag/">occa::streamTag</a> tag)</code>
      <code class="mobile-only"><span class="token keyword">void</span> waitFor(
    <a href="#/api/streamTag/">occa::streamTag</a> tag
)</code>
      <div class="flex-spacing"></div>
      <a href="https://github.com/libocca/occa/blob/7d02eac1/include/occa/core/device.hpp#L423" target="_blank">Source</a>
    </div>
    
  </div>

  <hr>
</div>


<h2 id="description">
 <a href="#/api/device/waitFor?id=description" class="anchor">
   <span>Description</span>
  </a>
</h2>

Wait for all operations queued up until the [tag](/api/streamTag/).
