2019-03-26 10:45:39 +08:00
|
|
|
#include <drogon/drogon.h>
|
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2019-05-18 11:11:45 +08:00
|
|
|
std::thread([]() {
|
|
|
|
drogon::app().getLoop()->runEvery(1, []() {
|
|
|
|
std::cout << "!" << std::endl;
|
|
|
|
});
|
|
|
|
}).detach();
|
2019-03-26 10:45:39 +08:00
|
|
|
drogon::app().run();
|
|
|
|
}
|