MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / shut_down

Function shut_down

source/binding/NodeJS/src/apis/server.cpp:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static 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
72static maajs::PromiseType join(maajs::EnvType env)
73{

Callers

nothing calls this directly

Calls 3

MaaAgentServerShutDownFunction · 0.85
QueueMethod · 0.80
PromiseMethod · 0.45

Tested by

no test coverage detected