| 232 | class MalignWorker : public AsyncProgressWorker<ProgressData> { |
| 233 | public: |
| 234 | static void DoWork(const CallbackInfo& info) { |
| 235 | Function cb = info[0].As<Function>(); |
| 236 | Function progress = info[1].As<Function>(); |
| 237 | |
| 238 | MalignWorker* worker = |
| 239 | new MalignWorker(cb, progress, "TestResource", Object::New(info.Env())); |
| 240 | worker->Queue(); |
| 241 | } |
| 242 | |
| 243 | protected: |
| 244 | void Execute(const ExecutionProgress& progress) override { |