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

Method wait

source/binding/NodeJS/src/apis/controller.cpp:278–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278maajs::PromiseType ControllerImpl::wait(MaaCtrlId id)
279{
280 auto worker = new maajs::AsyncWork<MaaStatus>(env, [handle = controller, id]() { return MaaControllerWait(handle, id); });
281 worker->Queue();
282 return worker->Promise();
283}
284
285bool ControllerImpl::get_connected()
286{

Callers

nothing calls this directly

Calls 3

MaaControllerWaitFunction · 0.85
QueueMethod · 0.80
PromiseMethod · 0.45

Tested by

no test coverage detected