码迷,mamicode.com
首页 > 其他好文 > 详细

promise VS future

时间:2017-07-28 19:29:44      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:produce   rod   opera   operation   write   syn   async   des   cer   

Future and Promise are the two separate sides of an asynchronous operation.

promise is used by the "producer/writer" of the asynchronous operation.

future is used by the "consumer/reader" of the asynchronous operation.

promise VS future

标签:produce   rod   opera   operation   write   syn   async   des   cer   

原文地址:http://www.cnblogs.com/yuyutianxia/p/7252030.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!