mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-10-25 22:27:09 +00:00
deploy: dccd3ce8fd
This commit is contained in:
1 parent
bc6bd878d9
commit
b59343a91e
6614 files changed
+12081
-47446
No files matched your search
+2
-2
@@ -46,7 +46,7 @@
|
||||
</button>
|
||||
<div class="navigation-controls--break ui-kit_mobile-only"></div>
|
||||
<div class="library-version" id="library-version">
|
||||
0.25.8 </div>
|
||||
0.26.0 </div>
|
||||
<div class="navigation-controls">
|
||||
<div class="filter-section filter-section_loading" id="filter-section">
|
||||
<button class="platform-tag platform-selector common-like" data-active=""
|
||||
@@ -109,7 +109,7 @@
|
||||
<div class="cover ">
|
||||
<h1 class="cover"><span>as</span><wbr></wbr><span>Mutable</span><wbr></wbr><span>Compose</span><wbr></wbr><span><span>State</span></span></h1>
|
||||
</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">fun </span><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">> </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="as-mutable-compose-state.html"><span class="token function">asMutableComposeState</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">initial<span class="token operator">: </span><a href="as-mutable-compose-state.html">T</a><span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token punctuation">, </span></span><span class="parameter ">useContextOnChange<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/index.html">CoroutineContext</a><span class="token operator">?</span><span class="token operator"> = </span>Dispatchers.Main<span class="token punctuation">, </span></span><span class="parameter ">onException<span class="token operator">: </span><a href="../dev.inmo.micro_utils.coroutines/-exception-handler/index.html">ExceptionHandler</a><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">?</span><span class="token operator">></span><span class="token operator"> = </span>defaultSafelyWithoutExceptionHandlerWithNull</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html">MutableState</a><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">></span><span class="clearfix"><span class="floating-right">(<a href="https://github.com/InsanusMokrassar/MicroUtils/blob/master//coroutines/compose/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/compose/FlowAsState.kt#L25">source</a>)</span></span></div><p class="paragraph">Will map <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">this</span> as <a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html">MutableState</a>. Returned <a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html">MutableState</a> WILL NOT change source <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span></p><h4 class="">Parameters</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><u><span><span>initial</span></span></u></div></span></div><div><div class="title"><p class="paragraph">First value which will be passed to the result <a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html">MutableState</a></p></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><u><span><span>scope</span></span></u></div></span></div><div><div class="title"><p class="paragraph">Will be used to <span data-unresolved-link="dev.inmo.micro_utils.coroutines//subscribeSafelyWithoutExceptions/kotlinx.coroutines.flow.Flow[TypeParam(bounds=[kotlin.Any?])]#kotlinx.coroutines.CoroutineScope#kotlin.coroutines.SuspendFunction1[kotlin.Throwable,TypeParam(bounds=[kotlin.Any?])?]#kotlin.coroutines.SuspendFunction1[TypeParam(bounds=[kotlin.Any?]),kotlin.Unit]/PointingToDeclaration/">subscribeSafelyWithoutExceptions</span> on <span data-unresolved-link="dev.inmo.micro_utils.coroutines.compose//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> to update returned <a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html">MutableState</a></p></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><u><span>use</span><wbr></wbr><span>Context</span><wbr></wbr><span>On</span>Line truncated
|
||||
<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">fun </span><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">> </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="as-mutable-compose-state.html"><span class="token function">asMutableComposeState</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">initial<span class="token operator">: </span><a href="as-mutable-compose-state.html">T</a><span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token punctuation">, </span></span><span class="parameter ">useContextOnChange<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/index.html">CoroutineContext</a><span class="token operator">?</span><span class="token operator"> = </span>Dispatchers.Main<span class="token punctuation">, </span></span><span class="parameter ">onException<span class="token operator">: </span><a href="../dev.inmo.micro_utils.coroutines/-exception-handler/index.html">ExceptionHandler</a><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">?</span><span class="token operator">></span><span class="token operator"> = </span>defaultSafelyWithoutExceptionHandlerWithNull</span></span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="/&lt;Error class: unknown class&gt;///PointingToDeclaration/"><Error class: unknown class></span><span class="token operator"><</span><a href="as-mutable-compose-state.html">T</a><span class="token operator">></span><span class="clearfix"><span class="floating-right">(<a href="https://github.com/InsanusMokrassar/MicroUtils/blob/master//coroutines/compose/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/compose/FlowAsState.kt#L25">source</a>)</span></span></div><p class="paragraph">Will map <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">this</span> as MutableState. Returned MutableState WILL NOT change source <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span></p><h4 class="">Parameters</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><u><span><span>initial</span></span></u></div></span></div><div><div class="title"><p class="paragraph">First value which will be passed to the result MutableState</p></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><u><span><span>scope</span></span></u></div></span></div><div><div class="title"><p class="paragraph">Will be used to <span data-unresolved-link="dev.inmo.micro_utils.coroutines//subscribeSafelyWithoutExceptions/kotlinx.coroutines.flow.Flow[TypeParam(bounds=[kotlin.Any?])]#kotlinx.coroutines.CoroutineScope#kotlin.coroutines.SuspendFunction1[kotlin.Throwable,TypeParam(bounds=[kotlin.Any?])?]#kotlin.coroutines.SuspendFunction1[TypeParam(bounds=[kotlin.Any?]),kotlin.Unit]/PointingToDeclaration/">subscribeSafelyWithoutExceptions</span> on <span data-unresolved-link="dev.inmo.micro_utils.coroutines.compose//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> to update returned MutableState</p></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><u><span>use</span><wbr></wbr><span>Context</span><wbr></wbr><span>On</span><wbr></wbr><span><span>Change</span></span></u></div></span></div><div><div class="title"><p class="paragraph">Will be used to change context inside of <span data-unresolved-link="dev.inmo.micro_utils.coroutines//subscribeSafelyWithoutExceptions/kotlinx.coroutines.flow.Flow[TypeParam(bounds=[kotlin.Any?])]#kotlinx.coroutines.CoroutineScope#kotlin.coroutines.SuspendFunction1[kotlin.ThrowableLine truncated
|
||||
</div>
|
||||
<div class="footer">
|
||||
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>
|
||||
|
||||
Reference in new issue
Block a user