graphql.schema.diffing.SchemaDiffingRunningCheck Maven / Gradle / Ivy
package graphql.schema.diffing;
import java.util.concurrent.atomic.AtomicBoolean;
class SchemaDiffingRunningCheck {
private final AtomicBoolean wasStopped = new AtomicBoolean(false);
void check() {
if (wasStopped.get()) {
throw new SchemaDiffingCancelledException(false);
}
}
void stop() {
wasStopped.set(true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy