napajs icon indicating copy to clipboard operation
napajs copied to clipboard

CallOptions.timeout in `zone.execute' should be followed more precisely

Open daiyip opened this issue 7 years ago • 0 comments

Code

console.time('timeout test');
zone.execute(() => { while (true) {} }, [], { timeout: 50})
    .catch((error) => {
        console.timeEnd('timeout test');
    });

Expected

timeout test: varies between 50 - 60ms

Actual

timeout test: around 50.00 ms

daiyip avatar Aug 09 '17 22:08 daiyip