Content-Length: 279796 | pFad | http://github.com/zswDev/lib_co

6E GitHub - zswDev/lib_co: a c++ continue library
Skip to content

zswDev/lib_co

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一个C++11 协程事件循环库 和 nodejs 的 co 框架类似,不过有工作线程池

TODO:

Timer function

example:

    ./run main.cpp

New writing method;

    Chan ch;
    co([]()->void{
        auto v = yield [&]()->void* {
            c_write(ch, 123); // golang_channel
            // TODO Asynchronous task, Run in thread pool
            return null;
        }
        cout<<v<<endl;
    })
    co([]()->void{
        auto v = yield [&]()->void* {
            auto v = c_read(ch)
            cout<<v<<endl;
            // TODO Asynchronous task, Run in thread pool
            return null;
        }
        cout<<v<<endl;
    })
    loop();

a c++11 continue library and event loop library

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/zswDev/lib_co

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy