MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / main

Function main

examples/retry.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60auto main() -> int
61{
62 auto x = retry(fail_some{});
63 // prints:
64 // fail!
65 // fail!
66 // success!
67 auto [a] = stdexec::sync_wait(std::move(x)).value();
68 (void) a;
69}

Callers

nothing calls this directly

Calls 2

retryFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected