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

Method wait

source/binding/NodeJS/src/apis/tasker.cpp:187–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187maajs::PromiseType TaskerImpl::wait(MaaTaskId id)
188{
189 auto worker = new maajs::AsyncWork<MaaStatus>(env, [handle = tasker, id]() { return MaaTaskerWait(handle, id); });
190 worker->Queue();
191 return worker->Promise();
192}
193
194bool TaskerImpl::get_inited()
195{

Callers

nothing calls this directly

Calls 3

MaaTaskerWaitFunction · 0.85
QueueMethod · 0.80
PromiseMethod · 0.45

Tested by

no test coverage detected