| 41 | void DoMarkFailed() { DoMarkFinishedOrFailed(FutureState::FAILURE); } |
| 42 | |
| 43 | void CheckOptions(const CallbackOptions& opts) { |
| 44 | if (opts.should_schedule != ShouldSchedule::Never) { |
| 45 | DCHECK_NE(opts.executor, nullptr) |
| 46 | << "An executor must be specified when adding a callback that might schedule"; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | void AddCallback(Callback callback, CallbackOptions opts) { |
| 51 | CheckOptions(opts); |
nothing calls this directly
no outgoing calls
no test coverage detected