This commit is contained in:
InsanusMokrassar
2021-11-26 19:04:20 +00:00
parent 93082e17e9
commit 3bd0642e43
8 changed files with 264 additions and 96 deletions

View File

@@ -1145,6 +1145,47 @@
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">inline fun &lt;<a href="[jvm]on-second.html">T1</a>, <a href="[jvm]on-second.html">T2</a>, <a href="[jvm]on-second.html">E</a> : <a href="[jvm]-either/index.html">Either</a>&lt;<a href="[jvm]on-second.html">T1</a>, <a href="[jvm]on-second.html">T2</a>&gt;&gt; <a href="[jvm]on-second.html">E</a>.<a href="[jvm]on-second.html">onSecond</a>(crossinline block: (<a href="[jvm]on-second.html">T2</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="[jvm]on-second.html">E</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Will call <a href="[jvm]on-second.html">block</a> in case when <a href="[jvm]-either/t2.html">Either.t2</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&amp;lt;this&amp;gt;/#/PointingToCallableParameters(-1)/">this</span> is not null</p></div></div>
</div>
</div>
</div>
</div>
<a data-name="-460367330%2FFunctions%2F1737121690" anchor-label="repeatOnFailure" id="-460367330%2FFunctions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a>
<div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><span data-unresolved-link="dev.inmo.micro_utils.common//repeatOnFailure/#kotlin.Int#kotlin.Function1[kotlin.Throwable,kotlin.Unit]#kotlin.Function1[kotlin.Int,TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"><span>repeat</span><wbr></wbr><span>On</span><wbr></wbr><span><span>Failure</span></span></span><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-460367330%2FFunctions%2F1737121690"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title"><div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><div class="with-platform-tags"><span class="pull-right">
<div class="platform-tags ">
<div class="platform-tag jvm-like">android</div>
</div>
</span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace">inline fun &lt;<a href="[android]repeat-on-failure.html">R</a>&gt; <a href="[android]repeat-on-failure.html">repeatOnFailure</a>(times: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, onEachFailure: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, action: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>) -&gt; <a href="[android]repeat-on-failure.html">R</a>): <a href="[android]-optional/index.html">Optional</a>&lt;<a href="[android]repeat-on-failure.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Executes the given <a href="[android]repeat-on-failure.html">action</a> until getting of successful result specified number of <a href="[android]repeat-on-failure.html">times</a>.</p></div></div>
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right">
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
</span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">inline fun &lt;<a href="[common]repeat-on-failure.html">R</a>&gt; <a href="[common]repeat-on-failure.html">repeatOnFailure</a>(times: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, onEachFailure: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, action: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>) -&gt; <a href="[common]repeat-on-failure.html">R</a>): <a href="[common]-optional/index.html">Optional</a>&lt;<a href="[common]repeat-on-failure.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Executes the given <a href="[common]repeat-on-failure.html">action</a> until getting of successful result specified number of <a href="[common]repeat-on-failure.html">times</a>.</p></div></div>
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="with-platform-tags"><span class="pull-right">
<div class="platform-tags ">
<div class="platform-tag jvm-like">jvm</div>
</div>
</span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">inline fun &lt;<a href="[jvm]repeat-on-failure.html">R</a>&gt; <a href="[jvm]repeat-on-failure.html">repeatOnFailure</a>(times: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, onEachFailure: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, action: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>) -&gt; <a href="[jvm]repeat-on-failure.html">R</a>): <a href="[jvm]-optional/index.html">Optional</a>&lt;<a href="[jvm]repeat-on-failure.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Executes the given <a href="[jvm]repeat-on-failure.html">action</a> until getting of successful result specified number of <a href="[jvm]repeat-on-failure.html">times</a>.</p></div></div>
</div>
</div>
</div>