| 303 | class SignalAfterProgressTestWorker : public AsyncProgressWorker<ProgressData> { |
| 304 | public: |
| 305 | static void DoWork(const CallbackInfo& info) { |
| 306 | Function cb = info[0].As<Function>(); |
| 307 | Function progress = info[1].As<Function>(); |
| 308 | |
| 309 | SignalAfterProgressTestWorker* worker = new SignalAfterProgressTestWorker( |
| 310 | cb, progress, "TestResource", Object::New(info.Env())); |
| 311 | worker->Queue(); |
| 312 | } |
| 313 | |
| 314 | protected: |
| 315 | void Execute(const ExecutionProgress& progress) override { |