Closed metasansana closed 1 year ago
Example:
const error = msg => raise(new Error(msg)); const main = error('fail').trap(e => error(`Failed: ${e.message}`); main();
The above hangs because the Trap message is not removed from the queue and is always there ready to handle the next error.
Trap
Example:
The above hangs because the
Trap
message is not removed from the queue and is always there ready to handle the next error.