V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
tioover
V2EX  ›  Tornado

Tornado Chat示例有问题

  •  
  •   tioover · Jun 2, 2011 · 6688 views
    This topic created in 5456 days ago, the information mentioned may be changed or developed.
    117行

    self.wait_for_messages(self.async_callback(self.on_new_messages),
    cursor=cursor)

    async_callback看源码的注释里似乎已经从1.1开始就废除了
    如果要修改的话应该怎么修改?

    发现把async_callback删了也能正常运行,不知道有问题否
    1 replies    1970-01-01 08:00:00 +08:00
    tioover
        1
    tioover  
    OP
       Jun 5, 2011
    知道了,这个方法没太多作用,不用管就行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:46 · PVG 04:46 · LAX 13:46 · JFK 16:46
    ♥ Do have faith in what you're doing.