mirror of
https://gitlab.com/niansa/libasync.git
synced 2025-03-06 20:53:29 +01:00
15 lines
368 B
C++
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);
|
|
}
|