| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected