There is an code from the book:
function timeoutify(fn,delay) { var intv = setTimeout( function(){ intv = null; fn( new Error( "Timeou