"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[6339],{330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>u,frontMatter:()=>c,metadata:()=>l,toc:()=>r});const l=JSON.parse('{"id":"XXTLanControl.lua/assist/cancel_all","title":"\u64a4\u9500\u5f53\u524d\u811a\u672c\u8bf7\u6c42 (LCC.assist.cancel_all)","description":"\u58f0\u660e","source":"@site/docs/XXTLanControl.lua/assist/cancel_all.md","sourceDirName":"XXTLanControl.lua/assist","slug":"/XXTLanControl.lua/assist/cancel_all","permalink":"/docs/XXTLanControl.lua/assist/cancel_all","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":80,"frontMatter":{"sidebar_position":80},"sidebar":"tutorialSidebar","previous":{"title":"\u64a4\u9500\u6307\u5b9a\u8bf7\u6c42 (LCC.assist.cancel)","permalink":"/docs/XXTLanControl.lua/assist/cancel"},"next":{"title":"KVDB \u6570\u636e\u64cd\u4f5c","permalink":"/docs/XXTLanControl.lua/kvdb/"}}');var t=s(4848),a=s(8453);const c={sidebar_position:80},i="\u64a4\u9500\u5f53\u524d\u811a\u672c\u8bf7\u6c42 (LCC.assist.cancel_all)",o={},r=[{value:"\u58f0\u660e",id:"\u58f0\u660e",level:2},{value:"\u53c2\u6570",id:"\u53c2\u6570",level:2},{value:"\u8fd4\u56de\u503c",id:"\u8fd4\u56de\u503c",level:2},{value:"\u8bf4\u660e",id:"\u8bf4\u660e",level:2},{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:2}];function d(e){const n={blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"\u64a4\u9500\u5f53\u524d\u811a\u672c\u8bf7\u6c42-lccassistcancel_all",children:"\u64a4\u9500\u5f53\u524d\u811a\u672c\u8bf7\u6c42 (LCC.assist.cancel_all)"})}),"\n",(0,t.jsx)(n.h2,{id:"\u58f0\u660e",children:"\u58f0\u660e"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:"count = LCC.assist.cancel_all(timeout?)\n"})}),"\n",(0,t.jsx)(n.h2,{id:"\u53c2\u6570",children:"\u53c2\u6570"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["timeout",(0,t.jsx)(n.br,{}),"\n","\u6570\u503c\u578b\uff0c\u53ef\u9009\uff1b\u5355\u4e2a\u64a4\u9500\u8bf7\u6c42\u7684\u8d85\u65f6\u65f6\u95f4\uff08\u79d2\uff09\uff0c\u9ed8\u8ba4 ",(0,t.jsx)(n.code,{children:"5"}),"\u3002"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"\u8fd4\u56de\u503c",children:"\u8fd4\u56de\u503c"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["count",(0,t.jsx)(n.br,{}),"\n","\u6570\u503c\u578b\uff0c\u6210\u529f\u64a4\u9500\u7684\u8bf7\u6c42\u6570\u91cf\u3002"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"\u8bf4\u660e",children:"\u8bf4\u660e"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["\u53ea\u64a4\u9500\u5f53\u524d\u811a\u672c\u5b9e\u4f8b\u521b\u5efa\u5e76\u4ecd\u8bb0\u5f55\u4e3a\u672a\u5b8c\u6210\u7684\u8bf7\u6c42\u3002",(0,t.jsx)(n.br,{}),"\n","\u4e0d\u4f1a\u64a4\u9500\u5176\u5b83\u8bbe\u5907\u7684\u8bf7\u6c42\uff0c\u4e5f\u4e0d\u4f1a\u64a4\u9500\u5176\u5b83\u811a\u672c\u5b9e\u4f8b\u521b\u5efa\u7684\u8bf7\u6c42\u3002",(0,t.jsx)(n.br,{}),"\n","\u811a\u672c\u7ed3\u675f\u65f6\uff0cSDK \u4f1a\u81ea\u52a8\u8c03\u7528 ",(0,t.jsx)(n.code,{children:"cancel_all(3)"})," \u6e05\u7406\u672a\u5b8c\u6210\u8bf7\u6c42\u3002"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:'local count = LCC.assist.cancel_all()\nnLog("\u5df2\u64a4\u9500\u8f85\u52a9\u8bf7\u6c42", count)\n'})})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>c,x:()=>i});var l=s(6540);const t={},a=l.createContext(t);function c(e){const n=l.useContext(a);return l.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),l.createElement(a.Provider,{value:n},e.children)}}}]);