| 168 | } |
| 169 | |
| 170 | bool HostExecutor::HostCallback(Stream *stream, |
| 171 | std::function<port::Status()> callback) { |
| 172 | AsHostStream(stream)->EnqueueTask([callback]() { |
| 173 | port::Status s = callback(); |
| 174 | if (!s.ok()) { |
| 175 | LOG(WARNING) << "Host callback failed: " << s; |
| 176 | } |
| 177 | }); |
| 178 | return true; |
| 179 | } |
| 180 | |
| 181 | bool HostExecutor::AllocateStream(Stream *stream) { return true; } |
| 182 |
nothing calls this directly
no test coverage detected