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

Function add_tasker_sink

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

Source from the content-addressed store, hash-verified

39}
40
41static void add_tasker_sink(maajs::FunctionType func)
42{
43 auto ctx = std::make_unique<maajs::CallbackContext>(func, "TaskerSink");
44 MaaAgentServerAddTaskerSink(TaskerSink, ctx.get());
45 ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx));
46}
47
48static void add_context_sink(maajs::FunctionType func)
49{

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
getMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected