<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="-smart-r-w-locker/index.html">SmartRWLocker</a><spanclass="token punctuation">.</span><ahref="wait-read-release.html"><spanclass="token function">waitReadRelease</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">permits<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token operator"> = </span><spanclass="token constant">1</span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></div><pclass="paragraph">Will wait until the <ahref="-smart-semaphore/permits-state-flow.html">SmartSemaphore.permitsStateFlow</a> of <spandata-unresolved-link="dev.inmo.micro_utils.coroutines//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> instance will have <ahref="wait-read-release.html">permits</a> count free permits.</p><pclass="paragraph">Anyway, after the end of this block there are no any guaranties that <ahref="-smart-semaphore/free-permits.html">SmartSemaphore.freePermits</a>>= <ahref="wait-read-release.html">permits</a> due to the fact that some other parties may lock it again</p></div></div>