node-firebird-libfbclient icon indicating copy to clipboard operation
node-firebird-libfbclient copied to clipboard

No Asynchronous version of prepareSync()

Open heri16 opened this issue 9 years ago • 3 comments

The code below causes a deadlock:

async.parellel([
  function(cb) { conn.prepareSync(); cb(); },
  function(cb) { conn.prepareSync(); cb(); },
], function(err, results) {});

heri16 avatar Nov 28 '16 08:11 heri16

strange, this should work

xdenser avatar Jan 18 '17 19:01 xdenser

There is no conn.prepare(callback) version.

heri16 avatar Feb 07 '17 10:02 heri16

How about this

async.parellel([
  function(cb) { conn.prepareSync(); setImmediate(cb); },
  function(cb) { conn.prepareSync(); setImmediate(cb); },
], function(err, results) {});

?

xdenser avatar Feb 07 '17 10:02 xdenser