Questions tagged [napajs]

Micorsoft multi-threaded JavaScript runtime distributed as a Node.js module. Provides API for objects sharing and synchronization across JavaScript threads.

https://github.com/Microsoft/napajs

2 questions
2
votes
3 answers

How to manage global variable in nested function

I have simple requirement, I need abc available in hello function but getting undefined I know below code giving me undefined and It should give function hello(){ console.log("printing abc ",abc); } function test(){ var abc = "hello"; …
Nishant Dixit
  • 5,388
  • 5
  • 17
  • 29
0
votes
1 answer

How do I call setInterval() within a Napa js Zone?

I need one or more Napa workers to do something in a setInterval loop. I am not entirely sure if that is officially supported yet (I have seen a Git Publish stating that the functionality was added). I have tried many things, the following code is…
Houssein K
  • 105
  • 8