MCPcopy Create free account
hub / github.com/apple/foundationdb / changePause

Method changePause

fdbclient/TaskBucket.actor.cpp:891–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891Future<Void> TaskBucket::changePause(Reference<ReadYourWritesTransaction> tr, bool pause) {
892 setOptions(tr);
893
894 if (pause) {
895 tr->set(pauseKey, StringRef());
896 } else {
897 tr->clear(pauseKey);
898 }
899
900 return Void();
901}
902
903Key TaskBucket::addTask(Reference<ReadYourWritesTransaction> tr, Reference<Task> task) {
904 setOptions(tr);

Callers 5

_checkMethod · 0.45
changePausedMethod · 0.45

Calls 4

setMethod · 0.65
clearMethod · 0.65
StringRefClass · 0.50
VoidClass · 0.50

Tested by

no test coverage detected