You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
30 KiB
JavaScript

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[2674],{1619:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>t,default:()=>h,frontMatter:()=>l,metadata:()=>o,toc:()=>d});var s=r(5893),i=r(1151),c=r(510);r(4996);const l={id:"task-queue",title:"26.3 \u4efb\u52a1\u961f\u5217",sidebar_label:"26.3 \u4efb\u52a1\u961f\u5217"},t=void 0,o={id:"task-queue",title:"26.3 \u4efb\u52a1\u961f\u5217",description:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7",source:"@site/docs/task-queue.mdx",sourceDirName:".",slug:"/task-queue",permalink:"/docs/task-queue",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/task-queue.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1678329349,formattedLastUpdatedAt:"Mar 9, 2023",frontMatter:{id:"task-queue",title:"26.3 \u4efb\u52a1\u961f\u5217",sidebar_label:"26.3 \u4efb\u52a1\u961f\u5217"},sidebar:"docs",previous:{title:"26.2 Cron \u8868\u8fbe\u5f0f",permalink:"/docs/cron"},next:{title:"27. \u5206\u5e03\u5f0f ID \u751f\u6210",permalink:"/docs/idgenerator"}},a={},d=[{value:"26.3.1 \u5173\u4e8e\u4efb\u52a1\u961f\u5217",id:"2631-\u5173\u4e8e\u4efb\u52a1\u961f\u5217",level:2},{value:"26.3.2 \u4e0e\u4e8b\u4ef6\u603b\u7ebf\u7684\u533a\u522b",id:"2632-\u4e0e\u4e8b\u4ef6\u603b\u7ebf\u7684\u533a\u522b",level:2},{value:"26.3.3 \u5165\u95e8\u6307\u5357",id:"2633-\u5165\u95e8\u6307\u5357",level:2},{value:"26.3.4 <code>TaskQueued</code> \u9759\u6001\u7c7b",id:"2634-taskqueued-\u9759\u6001\u7c7b",level:2},{value:"26.3.5 \u5728\u5904\u7406\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u670d\u52a1",id:"2635-\u5728\u5904\u7406\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u670d\u52a1",level:2},{value:"26.3.6 \u8ba2\u9605\u6267\u884c\u4efb\u52a1\u610f\u5916\u5f02\u5e38",id:"2636-\u8ba2\u9605\u6267\u884c\u4efb\u52a1\u610f\u5916\u5f02\u5e38",level:2},{value:"26.3.7 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"2637-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components},{Details:r}=n;return r||function(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r,{children:[(0,s.jsx)("summary",{children:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7"}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"\u65b0\u7279\u6027"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(c.Z,{children:"\u65b0\u589e"})," ",(0,s.jsx)(n.code,{children:"Enqueue/EnqueueAsync"})," \u652f\u6301 ",(0,s.jsx)(n.code,{children:"Cron"})," \u8868\u8fbe\u5f0f \u5b9e\u4f8b\u91cd\u8f7d\u65b9\u6cd5 ",(0,s.jsx)("sup",{children:"4.8.4.10"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2023.01.09"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I69HM4",children:"#I69HM4"})]}),"\n"]}),"\n"]}),"\n"]})})})]}),"\n","\n","\n",(0,s.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,s.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,s.jsx)(n.code,{children:"Furion 4.8.3 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,s.jsx)(n.admonition,{title:"\u5c0f\u77e5\u8bc6",type:"tip",children:(0,s.jsxs)(n.p,{children:["\u4efb\u52a1\u961f\u5217\u53ef\u53d6\u4ee3\u65e7\u7248\u672c\u5b9a\u65f6\u4efb\u52a1\u7684 ",(0,s.jsx)(n.code,{children:"SpareTime.DoIt()"})," \u548c ",(0,s.jsx)(n.code,{children:"SpareTime.DoOnce"})," \u529f\u80fd\u3002"]})}),"\n",(0,s.jsx)(n.h2,{id:"2631-\u5173\u4e8e\u4efb\u52a1\u961f\u5217",children:"26.3.1 \u5173\u4e8e\u4efb\u52a1\u961f\u5217"}),"\n",(0,s.jsxs)(n.p,{children:["\u4efb\u52a1\u961f\u5217\u5e38\u7528\u4e8e\u7ba1\u7406\u540e\u53f0\u5de5\u4f5c\uff0c",(0,s.jsx)(n.strong,{children:"\u901a\u5e38\u8fd9\u4e9b\u540e\u53f0\u5de5\u4f5c\u5728\u4e3b\u7ebf\u7a0b\u54cd\u5e94\u4e4b\u5916\uff0c\u4e0d\u4f1a\u5bf9\u4e