<divclass="content sourceset-depenent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="[common]do-outside-of-coroutine.html">T</a><spanclass="token operator">></span><ahref="[common]do-outside-of-coroutine.html"><spanclass="token function">doOutsideOfCoroutine</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">block<spanclass="token operator">: </span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="[common]do-outside-of-coroutine.html">T</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="[common]do-outside-of-coroutine.html">T</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Call this method in case you need to do something in common thread (like reading of file in JVM)</p></div></div>