MCPcopy Create free account
hub / github.com/Niko1221/Strata / feed

Function feed

engine/src/core/adapt_async_default_test.cpp:31–38  ·  view source on GitHub ↗

feed `n` windows of `ms` / `wait` / `tok`; returns the last non-None action

Source from the content-addressed store, hash-verified

29
30// feed `n` windows of `ms` / `wait` / `tok`; returns the last non-None action
31static Action feed(AdaptAsyncSelf& s, int n, double ms, double wait, int tok) {
32 Action last = Action::None;
33 for (int i = 0; i < n; ++i) {
34 const Action a = s.window(ms, wait, tok);
35 if (a != Action::None) last = a;
36 }
37 return last;
38}
39
40int main() {
41 const char* why = nullptr;

Callers 1

mainFunction · 0.70

Calls 1

windowMethod · 0.45

Tested by

no test coverage detected