Closed bbaayezi closed 3 years ago
await circuitReady freezes execution in quantum-register.js #87
await circuitReady
quantum-register.js
fix bug mentioned in issue #87
use process.nextTick() to make sure all quantum register nodes has advanced to await circuitReady() line before the emmision circuitReady event.
process.nextTick()
await circuitReady()
circuitReady
await circuitReady
freezes execution inquantum-register.js
#87Purpose
fix bug mentioned in issue #87
Changes
use
process.nextTick()
to make sure all quantum register nodes has advanced toawait circuitReady()
line before the emmisioncircuitReady
event.