mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 11:47:56 +08:00
14 lines
261 B
C++
14 lines
261 B
C++
#include <drogon/drogon.h>
|
|
#include <thread>
|
|
#include <unistd.h>
|
|
|
|
int main()
|
|
{
|
|
std::thread([]() {
|
|
drogon::app().getLoop()->runEvery(1, []() {
|
|
std::cout << "!" << std::endl;
|
|
});
|
|
})
|
|
.detach();
|
|
drogon::app().run();
|
|
} |