| 60 | } |
| 61 | |
| 62 | static maajs::PromiseType shut_down(maajs::EnvType env) |
| 63 | { |
| 64 | auto work = new maajs::AsyncWork<std::monostate>(env, []() { |
| 65 | MaaAgentServerShutDown(); |
| 66 | return std::monostate { }; |
| 67 | }); |
| 68 | work->Queue(); |
| 69 | return work->Promise(); |
| 70 | } |
| 71 | |
| 72 | static maajs::PromiseType join(maajs::EnvType env) |
| 73 | { |
nothing calls this directly
no test coverage detected