mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 19:57:43 +08:00
58702dc41e
Co-authored-by: mcirsta <mforce2@gmail.com>
12 lines
232 B
C++
12 lines
232 B
C++
#include <drogon/drogon.h>
|
|
#include <thread>
|
|
|
|
int main()
|
|
{
|
|
std::thread([]() {
|
|
drogon::app().getLoop()->runEvery(1, []() {
|
|
std::cout << "!" << std::endl;
|
|
});
|
|
}).detach();
|
|
drogon::app().run();
|
|
} |