<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-mutex/index.html">SmartMutex</a><spanclass="token punctuation">.</span><ahref="wait-unlock.html"><spanclass="token function">waitUnlock</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div><pclass="paragraph">Will wait until the <ahref="-smart-mutex/lock-state-flow.html">SmartMutex.lockStateFlow</a> of <spandata-unresolved-link="dev.inmo.micro_utils.coroutines//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> instance will be false.</p><pclass="paragraph">Anyway, after the end of this block there are no any guaranties that <ahref="-smart-mutex/is-locked.html">SmartMutex.isLocked</a> == false due to the fact that some other parties may lock it again</p></div></div>