0
))
var wait = require('wait-for-stuff');
function a(){
console.log("hello");
return;
}
wait.for.function(a)
console.log('end')
.. wait.for.function()はindefinetlyを待っています。wait.for.function(a)の後の行は、後にconsole文を含めて実行されません。関数から抜け出す方法を教えてくださいwait.for.function()の後の行が実行されます。