Ensures that concurrent ajax calls will be executed in sequence