MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / AsyncWork

Method AsyncWork

src/NodeRTLib/ProjectFiles/node-async.h:302–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301 template <typename TInput, typename TResult>
302 static void __cdecl AsyncWork(uv_work_t* req) {
303 // No HandleScope!
304
305 Baton<TInput, TResult>* baton =
306 static_cast<Baton<TInput, TResult>*>(req->data);
307
308 // Do work in threadpool here.
309 // Set baton->error_code/message on failures.
310 // Set baton->result with a final result object
311 baton->doWork(baton);
312 }
313
314 template <typename TInput, typename TResult>
315 static void __cdecl AsyncAfter(uv_work_t* req, int status) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected