MCPcopy Create free account
hub / github.com/baidu/babylon / invoke

Method invoke

test/concurrent/test_execution_queue.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70TEST(concurrent_execution_queue, execute_fail_when_launch_consumer_error) {
71 struct E : public Executor {
72 virtual int invoke(
73 MoveOnlyFunction<void(void)>&& function) noexcept override {
74 if (times++ == 0) {
75 return -1;
76 }
77 function();
78 return 0;
79 }
80 size_t times = 0;
81 } executor;
82 ConcurrentExecutionQueue<::std::string> queue;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected