8000 GitHub - kezhengjie/coroutinetool: functional c++ tiny lib based on c++20 coroutine,for learning and utility purpose.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kezhengjie/coroutinetool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coroutinetool

functional c++ tiny lib based on c++20 coroutine,for learning and utility purpose.

currently a async shell executor implemented.You could run system command in place with calling fgets etc...

Start

#include "async_shell_executor.h"
#include <iostream>

using namespace std;
using namespace coroutinetool;

int main(int argc, char **argv)
{
    auto ae = AsyncExecutor::Run("ipconfig");
    while (ae)
        cout << ae();
    cout << "return code is: " << ae.Code() << endl;
    ae = AsyncExecutor::Run("ipconfig");
    while (ae)
        cout << ae();
    cout << "return code is: " << ae.Code() << endl;
}

About

functional c++ tiny lib based on c++20 coroutine,for learning and utility purpose.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0