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

Method task_id

source/MaaAgentServer/RemoteInstance/RemoteContext.cpp:179–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179MaaTaskId RemoteContext::task_id() const
180{
181 ContextTaskIdReverseRequest req {
182 .context_id = context_id_,
183 };
184
185 auto resp_opt = server_.send_and_recv<ContextTaskIdReverseResponse>(req);
186 if (!resp_opt) {
187 return MaaInvalidId;
188 }
189
190 return resp_opt->task_id;
191}
192
193MaaTasker* RemoteContext::tasker() const
194{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected