MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreach

Function foreach

src/io.cpp:112–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 // Send the data to the redirect hooks.
111 const string s = string(data.get(), length);
112 foreach (const lambda::function<void(const string&)>& hook, hooks) {
113 hook(s);
114 }
115
116 return io::write(to, s)
117 .then([]() -> Future<ControlFlow<Nothing>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected