| 10 | class TestWorkerWithUserDefRecv : public AsyncWorker { |
| 11 | public: |
| 12 | static void DoWork(const CallbackInfo& info) { |
| 13 | Object recv = info[0].As<Object>(); |
| 14 | Function cb = info[1].As<Function>(); |
| 15 | |
| 16 | TestWorkerWithUserDefRecv* worker = new TestWorkerWithUserDefRecv(recv, cb); |
| 17 | worker->Queue(); |
| 18 | } |
| 19 | |
| 20 | static void DoWorkWithAsyncRes(const CallbackInfo& info) { |
| 21 | Object recv = info[0].As<Object>(); |