MCPcopy Create free account
hub / github.com/nodejs/nan / Execute

Method Execute

test/cpp/asyncprogressworkerstream.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void Execute (
39 const typename AsyncProgressWorkerBase<T>::ExecutionProgress& progress) {
40 data_t data;
41 for (int i = 0; i < iters; ++i) {
42 data.index = i;
43 data.data = i * 2;
44 progress.Send(&data, 1);
45 Sleep(milliseconds);
46 }
47 }
48
49 void HandleProgressCallback(const T *data, size_t count) {
50 HandleScope scope;

Callers

nothing calls this directly

Calls 1

SendMethod · 0.45

Tested by

no test coverage detected