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

Function start_up

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

Source from the content-addressed store, hash-verified

53}
54
55static 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
62static maajs::PromiseType shut_down(maajs::EnvType env)
63{

Callers

nothing calls this directly

Calls 3

MaaAgentServerStartUpFunction · 0.85
QueueMethod · 0.80
PromiseMethod · 0.45

Tested by

no test coverage detected