#include <nan.h>
Public Member Functions | |
AsyncWorker (Callback *callback_) | |
virtual void | Destroy () |
virtual void | Execute ()=0 |
v8::Local< v8::Value > | GetFromPersistent (const char *key) const |
v8::Local< v8::Value > | GetFromPersistent (const v8::Local< v8::String > &key) const |
v8::Local< v8::Value > | GetFromPersistent (uint32_t index) const |
void | SaveToPersistent (const char *key, const v8::Local< v8::Value > &value) |
void | SaveToPersistent (const v8::Local< v8::String > &key, const v8::Local< v8::Value > &value) |
void | SaveToPersistent (uint32_t index, const v8::Local< v8::Value > &value) |
virtual void | WorkComplete () |
virtual | ~AsyncWorker () |
Public Attributes | |
uv_work_t | request |
Protected Member Functions | |
const char * | ErrorMessage () const |
virtual void | HandleErrorCallback () |
virtual void | HandleOKCallback () |
void | SetErrorMessage (const char *msg) |
Protected Attributes | |
Callback * | callback |
Persistent< v8::Object > | persistentHandle |
Private Attributes | |
char * | errmsg_ |
Nan::AsyncWorker::AsyncWorker | ( | Callback * | callback_ | ) | [inline, explicit] |
virtual Nan::AsyncWorker::~AsyncWorker | ( | ) | [inline, virtual] |
virtual void Nan::AsyncWorker::Destroy | ( | ) | [inline, virtual] |
Reimplemented in Nan::AsyncProgressWorkerBase< T >.
const char* Nan::AsyncWorker::ErrorMessage | ( | ) | const [inline, protected] |
virtual void Nan::AsyncWorker::Execute | ( | ) | [pure virtual] |
Implemented in Nan::AsyncProgressWorkerBase< T >.
v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent | ( | const char * | key | ) | const [inline] |
v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent | ( | const v8::Local< v8::String > & | key | ) | const [inline] |
v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent | ( | uint32_t | index | ) | const [inline] |
virtual void Nan::AsyncWorker::HandleErrorCallback | ( | ) | [inline, protected, virtual] |
virtual void Nan::AsyncWorker::HandleOKCallback | ( | ) | [inline, protected, virtual] |
void Nan::AsyncWorker::SaveToPersistent | ( | const char * | key, |
const v8::Local< v8::Value > & | value | ||
) | [inline] |
void Nan::AsyncWorker::SaveToPersistent | ( | const v8::Local< v8::String > & | key, |
const v8::Local< v8::Value > & | value | ||
) | [inline] |
void Nan::AsyncWorker::SaveToPersistent | ( | uint32_t | index, |
const v8::Local< v8::Value > & | value | ||
) | [inline] |
void Nan::AsyncWorker::SetErrorMessage | ( | const char * | msg | ) | [inline, protected] |
virtual void Nan::AsyncWorker::WorkComplete | ( | ) | [inline, virtual] |
Callback* Nan::AsyncWorker::callback [protected] |
char* Nan::AsyncWorker::errmsg_ [private] |
Persistent<v8::Object> Nan::AsyncWorker::persistentHandle [protected] |
uv_work_t Nan::AsyncWorker::request |