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

Method post_task

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

Source from the content-addressed store, hash-verified

137}
138
139maajs::ValueType
140 TaskerImpl::post_task(maajs::ValueType self, maajs::EnvType, std::string entry, maajs::OptionalParam<maajs::ValueType> param)
141{
142 auto id = MaaTaskerPostTask(tasker, entry.c_str(), maajs::JsonStringify(env, param.value_or(maajs::ObjectType::New(env))).c_str());
143 return maajs::CallCtorHelper(ExtContext::get(env)->taskJobCtor, self, id);
144}
145
146maajs::ValueType TaskerImpl::post_recognition(
147 maajs::ValueType self,

Callers

nothing calls this directly

Calls 3

MaaTaskerPostTaskFunction · 0.85
JsonStringifyFunction · 0.85
CallCtorHelperFunction · 0.85

Tested by

no test coverage detected