<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="../-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</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>contextUpdatesFlow<spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a><spanclass="token operator">></span><spanclass="token punctuation">, </span>state<spanclass="token operator">: </span><ahref="index.html">O</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">Handling of state :)</p><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span>context</span><wbr></wbr><span>Updates</span><wbr></wbr><span><span>Flow</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">This <spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span> will be used as source of updates. By contract, this <spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span> must be common for all <spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>s of incoming <spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/State/context/#/PointingToDeclaration/">state</span> and for the whole chain inside of <ahref="../-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a></p></div></div></div></div></div></div></div></div></div>