nextTick vs setImmediate
NodeJS
Hard
4 views
Problem Description
Print the order between process.nextTick and setImmediate.
Output Format
Print lines.
Constraints
nextTick runs before setImmediate.
Official Solution
console.log('sync');
process.nextTick(() => console.log('nextTick'));
setImmediate(() => console.log('setImmediate'));
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!