From 43c8a33bf038570c699e61ef9e2e0cfc18995e56 Mon Sep 17 00:00:00 2001 From: Atul R Date: Sat, 29 Feb 2020 00:06:56 +0100 Subject: [PATCH] Add microtask runner --- npm/package-lock.json | 2 +- npm/package.json | 2 +- src/integration/node_integration.cc | 1 + src/qode.cc | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/npm/package-lock.json b/npm/package-lock.json index 728c535..48c6795 100644 --- a/npm/package-lock.json +++ b/npm/package-lock.json @@ -1,6 +1,6 @@ { "name": "@nodegui/qode", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/npm/package.json b/npm/package.json index c31e792..b51f620 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,6 +1,6 @@ { "name": "@nodegui/qode", - "version": "2.0.3", + "version": "2.0.4", "description": "Qode is a lightly modified fork of Node.js that merges Node's event loop with Qt's event loop. It is designed to be used together with `@nodegui/nodegui`", "main": "index.js", "files": [ diff --git a/src/integration/node_integration.cc b/src/integration/node_integration.cc index 35460b4..56866ca 100644 --- a/src/integration/node_integration.cc +++ b/src/integration/node_integration.cc @@ -64,6 +64,7 @@ void NodeIntegration::UvRunOnce() { // Deal with uv events. uv_run(uv_loop_, UV_RUN_NOWAIT); + isolate->RunMicrotasks(); //TODO: fix me // Tell the worker thread to continue polling. uv_sem_post(&embed_sem_); } diff --git a/src/qode.cc b/src/qode.cc index 04b5382..d2c8630 100644 --- a/src/qode.cc +++ b/src/qode.cc @@ -8,7 +8,7 @@ #include "src/integration/node_integration.h" #include "src/helpers/qode_helper.h" -std::string qodeVersion = "2.0.3"; +std::string qodeVersion = "2.0.4"; namespace qode {