mirror of
				https://github.com/InsanusMokrassar/MicroUtils.git
				synced 2025-10-31 04:05:32 +00:00 
			
		
		
		
	deploy: ea497ea488
				
					
				
			This commit is contained in:
		| @@ -65,7 +65,7 @@ | ||||
|   <div class="breadcrumbs"><a href="../../../index.html">micro_utils.dokka</a><span class="delimiter">/</span><a href="../index.html">dev.inmo.micro_utils.coroutines</a><span class="delimiter">/</span><span class="current">SmartMutex</span></div> | ||||
|   <div class="cover "> | ||||
|     <h1 class="cover"><span>Smart</span><wbr></wbr><span><span>Mutex</span></span></h1> | ||||
|     <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">interface </span><a href="index.html">SmartMutex</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/InsanusMokrassar/MicroUtils/blob/master//coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/SmartMutex.kt#L25">source</a>)</span></span></div><p class="paragraph">It is interface which will work like classic <span data-unresolved-link="kotlinx.coroutines.sync/Mutex///PointingToDeclaration/">Mutex</span>, but in difference have <a href="lock-state-flow.html">lockStateFlow</a> for listening of the <a href="index.html">SmartMutex</a> state.</p><p class="paragraph">There is <a href="-mutable/index.html">Mutable</a> and <a href="-immutable/index.html">Immutable</a> realizations. In case you are owner and manager current state of lock, you need <a href="index.html">Mutable</a>. Otherwise, <a href="-immutable/index.html">Immutable</a>.</p><p class="paragraph">Any <a href="index.html">Mutable</a> may produce its <a href="-immutable/index.html">Immutable</a> variant which will contains <a href="lock-state-flow.html">lockStateFlow</a> equal to its <a href="-mutable/index.html">Mutable</a> creator</p><h4 class="">Inheritors</h4><div class="table"><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="-immutable/index.html">Immutable</a></div></span></div><div></div></div></div><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="-mutable/index.html">Mutable</a></div></span></div><div></div></div></div></div></div></div> | ||||
|     <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">sealed </span><span class="token keyword">interface </span><a href="index.html">SmartMutex</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/InsanusMokrassar/MicroUtils/blob/master//coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/SmartMutex.kt#L25">source</a>)</span></span></div><p class="paragraph">It is interface which will work like classic <span data-unresolved-link="kotlinx.coroutines.sync/Mutex///PointingToDeclaration/">Mutex</span>, but in difference have <a href="lock-state-flow.html">lockStateFlow</a> for listening of the <a href="index.html">SmartMutex</a> state.</p><p class="paragraph">There is <a href="-mutable/index.html">Mutable</a> and <a href="-immutable/index.html">Immutable</a> realizations. In case you are owner and manager current state of lock, you need <a href="index.html">Mutable</a>. Otherwise, <a href="-immutable/index.html">Immutable</a>.</p><p class="paragraph">Any <a href="index.html">Mutable</a> may produce its <a href="-immutable/index.html">Immutable</a> variant which will contains <a href="lock-state-flow.html">lockStateFlow</a> equal to its <a href="-mutable/index.html">Mutable</a> creator</p><h4 class="">Inheritors</h4><div class="table"><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="-immutable/index.html">Immutable</a></div></span></div><div></div></div></div><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="-mutable/index.html">Mutable</a></div></span></div><div></div></div></div></div></div></div> | ||||
|   </div> | ||||
|   <div class="tabbedcontent"> | ||||
|     <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button><button class="section-tab" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION,EXTENSION_PROPERTY,EXTENSION_FUNCTION">Members & Extensions</button></div> | ||||
| @@ -82,7 +82,7 @@ | ||||
|                   </span></span></div> | ||||
|               <div> | ||||
|                 <div class="title"> | ||||
|                   <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="-immutable/index.html">Immutable</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">val </span>lockStateFlow<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/StateFlow///PointingToDeclaration/">StateFlow</span><span class="token operator"><</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator">></span></span></span><span class="token punctuation">)</span> : <a href="index.html">SmartMutex</a></div><div class="brief "><p class="paragraph">Immutable variant of <a href="index.html">SmartMutex</a>. In fact will depend on the owner of <a href="-immutable/lock-state-flow.html">lockStateFlow</a></p></div></div></div> | ||||
|                   <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="-immutable/index.html">Immutable</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">val </span>lockStateFlow<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/StateFlow///PointingToDeclaration/">StateFlow</span><span class="token operator"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator">></span></span></span><span class="token punctuation">)</span> : <a href="index.html">SmartMutex</a></div><div class="brief "><p class="paragraph">Immutable variant of <a href="index.html">SmartMutex</a>. In fact will depend on the owner of <a href="-immutable/lock-state-flow.html">lockStateFlow</a></p></div></div></div> | ||||
|                 </div> | ||||
|               </div> | ||||
|             </div> | ||||
| @@ -116,7 +116,7 @@ | ||||
|                   </span></span></div> | ||||
|               <div> | ||||
|                 <div class="title"> | ||||
|                   <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword"></span><span class="token keyword">val </span><a href="is-locked.html">isLocked</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div></div></div> | ||||
|                   <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">val </span><a href="is-locked.html">isLocked</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div></div></div> | ||||
|                 </div> | ||||
|               </div> | ||||
|             </div> | ||||
| @@ -131,7 +131,7 @@ | ||||
|                   </span></span></div> | ||||
|               <div> | ||||
|                 <div class="title"> | ||||
|                   <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">val </span><a href="lock-state-flow.html">lockStateFlow</a><span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/StateFlow///PointingToDeclaration/">StateFlow</span><span class="token operator"><</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator">></span></div></div></div> | ||||
|                   <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">val </span><a href="lock-state-flow.html">lockStateFlow</a><span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/StateFlow///PointingToDeclaration/">StateFlow</span><span class="token operator"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator">></span></div></div></div> | ||||
|                 </div> | ||||
|               </div> | ||||
|             </div> | ||||
| @@ -141,7 +141,7 @@ | ||||
|       <div data-togglable="EXTENSION_FUNCTION"> | ||||
|         <h2 class="">Functions</h2> | ||||
|         <div class="table"><a data-name="-2110023258%2FFunctions%2F-1478683138" anchor-label="waitUnlock" id="-2110023258%2FFunctions%2F-1478683138" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"></a> | ||||
|           <div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"> | ||||
|           <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"> | ||||
|             <div class="main-subrow keyValue "> | ||||
|               <div class=""><span class="inline-flex"> | ||||
|                   <div><a href="../wait-unlock.html"><span>wait</span><wbr></wbr><span><span>Unlock</span></span></a></div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user