加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Reactor在twisted中的作用

发布时间:2020-12-15 05:02:50 所属栏目:百科 来源:网络整理
导读:首先,引用官方文档中的解释: The reactor is Twisted's main event loop. There is exactly one reactor in any running Twisted application. Once started it loops over and over again,responding to network events,and making scheduled calls to code
首先,引用官方文档中的解释:

The reactor is Twisted's main event loop. There is exactly one reactor in any running Twisted application. Once started it loops over and over again,responding to network events,and making scheduled calls to code. 也就是说reactor是twisted中主要的事件循环。每个twisted应用都必须要使用一个reactor,当它启动之后就会不停地进行循环操作,对网络事件进行响应,并对程序进行调度。 未完待续...

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读