Implement nextTick.