Update uWS, bring back MicrotasksPolicy::kAuto
This commit is contained in:
parent
6955cf75fd
commit
4f6055d454
@ -62,19 +62,19 @@ void Main(Local<Object> exports) {
|
|||||||
|
|
||||||
/* We want this so that we can redefine process.nextTick to using the V8 native microtask queue */
|
/* We want this so that we can redefine process.nextTick to using the V8 native microtask queue */
|
||||||
// todo: setting this might be crashing nodejs?
|
// todo: setting this might be crashing nodejs?
|
||||||
// isolate->SetMicrotasksPolicy(MicrotasksPolicy::kAuto);
|
isolate->SetMicrotasksPolicy(MicrotasksPolicy::kAuto);
|
||||||
|
|
||||||
/* Integrate with existing libuv loop, we just pass a boolean basically */
|
/* Integrate with existing libuv loop, we just pass a boolean basically */
|
||||||
uWS::Loop::get((void *) 1);
|
uWS::Loop::get((void *) 1);
|
||||||
|
|
||||||
// instead, for now we call this manually like before:
|
// instead, for now we call this manually like before:
|
||||||
uWS::Loop::get()->setPostHandler([](uWS::Loop *) {
|
/*uWS::Loop::get()->setPostHandler([](uWS::Loop *) {
|
||||||
isolate->RunMicrotasks();
|
isolate->RunMicrotasks();
|
||||||
});
|
});
|
||||||
|
|
||||||
uWS::Loop::get()->setPreHandler([](uWS::Loop *) {
|
uWS::Loop::get()->setPreHandler([](uWS::Loop *) {
|
||||||
isolate->RunMicrotasks();
|
isolate->RunMicrotasks();
|
||||||
});
|
});*/
|
||||||
|
|
||||||
/* uWS namespace */
|
/* uWS namespace */
|
||||||
exports->Set(String::NewFromUtf8(isolate, "App"), FunctionTemplate::New(isolate, uWS_App<uWS::App>)->GetFunction());
|
exports->Set(String::NewFromUtf8(isolate, "App"), FunctionTemplate::New(isolate, uWS_App<uWS::App>)->GetFunction());
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit a9c9dd4a7df8debbdba12a2a2cd100ab6760d588
|
Subproject commit b36607dac69271299db8302aafec247200a83e3d
|
Loading…
Reference in New Issue
Block a user