1
0
Fork 0
mirror of https://gitlab.com/niansa/libasync.git synced 2025-03-06 20:53:29 +01:00
libasync/tests/race.cpp

15 lines
368 B
C++

#include <new>
#include <async/queue.hpp>
#include <async/result.hpp>
#include <async/algorithm.hpp>
#include <gtest/gtest.h>
TEST(Race, QueueRaceAndCancel) {
async::run(async::race_and_cancel(
[] (async::cancellation_token) -> async::result<void> { co_return; },
[] (async::cancellation_token) -> async::result<void> { co_return; }
));
ASSERT_TRUE(true);
}