| 53 | } |
| 54 | |
| 55 | static maajs::PromiseType start_up(maajs::EnvType env, std::string identifier) |
| 56 | { |
| 57 | auto work = new maajs::AsyncWork<bool>(env, [identifier]() { return MaaAgentServerStartUp(identifier.c_str()); }); |
| 58 | work->Queue(); |
| 59 | return work->Promise(); |
| 60 | } |
| 61 | |
| 62 | static maajs::PromiseType shut_down(maajs::EnvType env) |
| 63 | { |
nothing calls this directly
no test coverage detected