<divclass="content sourceset-depenent-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><ahref="../[common]-states-machine/index.html">StatesMachine</a><spanclass="token operator"><</span><spanclass="token keyword">in </span><ahref="index.html">O</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="handle-state.html"><spanclass="token function">handleState</span></a><spanclass="token punctuation">(</span>state<spanclass="token operator">: </span><ahref="index.html">I</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="index.html">O</a><spanclass="token operator">?</span><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">Main handling of <ahref="handle-state.html">state</a>. In case when this <ahref="handle-state.html">state</a> leads to another <ahref="../[common]-state/index.html">State</a> and <ahref="handle-state.html">handleState</a> returns not null <ahref="../[common]-state/index.html">State</a> it is assumed that chain is not completed.</p></div></div>