//
//  asyncobj.h
//  binding
//
//  Created by lcg on 15/12/21.
//
//

#ifndef asyncobj_h
#define asyncobj_h

#include <node.h>
#include <uv.h>
#include "AWFastCheck.hpp"

namespace NAC
{
    class AsyncObj
    {
    public:
        v8::Persistent<v8::Function> jsCallbackObj;
        v8::Persistent<v8::Context> jsContext;
        std::string textOrPath;
        uv_async_t mainAsync;
        uv_thread_t workerThread;
        v8::Isolate *isolate;
        
        int flag;
        AIWriter::AWFastCheck::CheckResultVector results;
    };
}

#endif /* asyncobj_h */
