Asynchronous work helpers
Nan::AsyncWorker
and Nan::AsyncProgressWorker
are helper classes that make working with asynchronous code easier.
Nan::AsyncWorker
Nan::AsyncWorker
is an abstract class that you can subclass to have much of the annoying asynchronous queuing and handling taken care of for you. It can even store arbitrary V8 objects for you and have them persist while the asynchronous work is in progress.
Definition:
Nan::AsyncProgressWorker
Nan::AsyncProgressWorker
is an abstract class that extends Nan::AsyncWorker
and adds additional progress reporting callbacks that can be used during the asynchronous work execution to provide progress data back to JavaScript.
Definition:
Nan::AsyncQueueWorker
Nan::AsyncQueueWorker
will run a Nan::AsyncWorker
asynchronously via libuv. Both the execute
and after_work
steps are taken care of for you. Most of the logic for this is embedded in Nan::AsyncWorker
.
Definition:
Last updated