asyn proposals

Objective:

asyn proposals

1, threadpool + blocking queue

fn main
    enQueue(waitTrig)
    
fn waitTrig    
    print 'Wait Trig Done'
    enQueue(startOtf)
    enQueue(PrepareNextJob)
fn    startOtf
    enQueue(waitGrabDone)
    enQueue(Inspect)
    
fn    waitGrabDone
    enQueue(waitTrig)

2, javascript promise

3, c++ future

http://www.cnblogs.com/haippy/p/3279565.html

http://blog.csdn.net/liuxuejiang158blog/article/details/17354115

http://*.com/questions/12620186/futures-vs-promises

http://*.com/questions/11004273/what-is-stdpromise

http://*.com/questions/20974022/c-futures-promises-like-javascript

4, javascript callback

5,impl a asyn functions in node.js

https://blog.scottfrees.com/building-an-asynchronous-c-addon-for-node-js-using-nan

5.asyn await

https://msdn.microsoft.com/en-us/library/hh191443.aspx

http://huan-lin.blogspot.com/2016/01/async-and-await.html

http://www.cnblogs.com/jesse2013/p/async-and-await.html

上一篇:CSS3中:nth-child和:nth-of-type的区别深入理解


下一篇:cmd 获取 拖拽文件名