<divclass="content sourceset-depenent-content"data-active=""data-togglable=":dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">inline suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="do-once-local.html">T</a><spanclass="token operator">></span><ahref="-kron-scheduler/index.html">KronScheduler</a><spanclass="token punctuation">.</span><ahref="do-once-local.html"><spanclass="token function">doOnceLocal</span></a><spanclass="token punctuation">(</span><spanclass="token keyword">noinline </span>block<spanclass="token operator">: </span><spanclass="token keyword">suspend </span><spanclass="token punctuation">(</span><spanclass="token keyword"></span><spandata-unresolved-link="com.soywiz.klock/DateTime///PointingToDeclaration/">DateTime</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="do-once-local.html">T</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="do-once-local.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">Execute <ahref="do-once-local.html">block</a> once at the <ahref="-kron-scheduler/next.html">KronScheduler.next</a> time and return result of <ahref="do-once-local.html">block</a> calculation.</p><pclass="paragraph">WARNING!!! If you want to launch it in parallel, you must do this explicitly.</p><pclass="paragraph">WARNING!!! In case if <ahref="-kron-scheduler/next.html">KronScheduler.next</a> of <spandata-unresolved-link="dev.inmo.krontab//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> instance will return null, <ahref="do-once-local.html">block</a> will be called immediately</p></div></div>