摘要: 上一篇忘了ChanResultChanResult可以用来模拟BigPipe,定义如下type ChanResult struct { Wait sync.WaitGroup Chan chan string ContentType string Start []byte End []byte Timeout time.Duration}ChanResult会先输出Start,然后读取Chan中的字符串输出到客户端,最后输出End。还忘了Controller的事件。如果Controller的每个... 阅读全文
posted @ 2013-08-08 14:40 buzzlight 阅读(1506) 评论(0) 推荐(2)