<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">interface </span><ahref="index.html">ActionWrapper</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/MicroUtils/blob/master//repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/ActionWrapper.kt#L12">source</a>)</span></span></div><pclass="paragraph">Realizations should <ahref="wrap.html">wrap</a> the work with some conditions like retries on exceptions, calling timeout, etc.</p><h4class="">See also</h4><divclass="table"><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-timeouted/index.html"><span>Action</span><wbr></wbr><span>Wrapper.</span><wbr></wbr><span>Timeouted</span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-direct/index.html"><span>Action</span><wbr></wbr><span>Wrapper.</span><wbr></wbr><span>Direct</span></a></div></span></div><div></div></div></div></div><h4class="">Inheritors</h4><divclass="table"><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-timeouted/index.html">Timeouted</a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-direct/index.html">Direct</a></div></span></div><div></div></div></div></div></div></div>
<divclass="copy-popup-wrapper "><spanclass="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<divclass="title">
<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">object </span><ahref="-direct/index.html">Direct</a> : <ahref="index.html">ActionWrapper</a></div><divclass="brief "><pclass="paragraph">It is passthrough variant of <ahref="index.html">ActionWrapper</a> which will just call incoming block with wrapping into <ahref="../../dev.inmo.micro_utils.coroutines/run-catching-safely.html">runCatchingSafely</a></p></div></div></div>
<divclass="copy-popup-wrapper "><spanclass="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<divclass="title">
<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">class </span><ahref="-timeouted/index.html">Timeouted</a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">timeoutMillis<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a></span></span><spanclass="token punctuation">)</span> : <ahref="index.html">ActionWrapper</a></div><divclass="brief "><pclass="paragraph">This type of <ahref="index.html">ActionWrapper</a>s will use <spandata-unresolved-link="dev.inmo.micro_utils.repos.cache.fallback/ActionWrapper.Timeouted/timeoutMillis/#/PointingToDeclaration/">withTimeout</span> and if original call will not return anything in that timeout just return <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-result/index.html">Result</a> with failure</p></div></div></div>
<divclass="copy-popup-wrapper "><spanclass="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<divclass="title">
<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">abstract </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="wrap.html">T</a><spanclass="token operator">></span><ahref="wrap.html"><spanclass="token function">wrap</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">block<spanclass="token operator">: </span><spanclass="token keyword">suspend </span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="wrap.html">T</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-result/index.html">Result</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="wrap.html">T</a><spanclass="token operator">></span></div><divclass="brief "><pclass="paragraph">Should execute <ahref="wrap.html">block</a> to take the result <ahref="wrap.html">T</a>, but may return failure in case when something went wrong. This method should never throw any <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html">Exception</a></p></div></div></div>