<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="index.html">Direct</a> : <ahref="../index.html">ActionWrapper</a></div><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>
<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">open </span><spanclass="token keyword">suspend override </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>