We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mobile
console.log("Main thread", typeof Mobile); jxcore.tasks.runOnce(function(){ console.log("Thread", process.threadId, typeof Mobile); });
Main thread function Thread 0 undefined Thread 1 undefined
So if you want to call e.g. Mobile("log").call("hello") under the task, you need to do something like this:
Mobile("log").call("hello")
jxcore.tasks.runOnce(function(){ process.sendToMain("test"); }); jxcore.tasks.on("message", function(tid, params) { if (params === "test") Mobile("log").call("hello"); });
The text was updated successfully, but these errors were encountered:
We can definitely register Mobile proxy class to subthreads to handle this sort of usage.
Sorry, something went wrong.
obastemur
No branches or pull requests
Workaround
So if you want to call e.g.
Mobile("log").call("hello")
under the task, you need to do something like this:The text was updated successfully, but these errors were encountered: