Skip to content

Commit

Permalink
disabled strand test
Browse files Browse the repository at this point in the history
strands on multuiple threads are not officially supported anyhow.
  • Loading branch information
klemens-morgenstern committed Dec 13, 2024
1 parent c405a54 commit 2437112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/reference/spawn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ int main(int argc, char *argv[])
----

WARNING: The caller needs to make sure that the executor is not running on multiple threads
concurrently, e,g, by using a single-threaded `asio::io_context` or a `strand`.
concurrently, e,g, by using a single-threaded `asio::io_context`.


3 changes: 2 additions & 1 deletion test/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ CO_TEST_CASE(reawait)
BOOST_CHECK_NO_THROW(co_await std::move(t));
}


/*
cobalt::task<int> test_strand1(asio::any_io_executor exec)
{
BOOST_ASSERT(exec == co_await cobalt::this_coro::executor);
Expand Down Expand Up @@ -296,6 +296,7 @@ BOOST_AUTO_TEST_CASE(stranded)
}
#endif
*/

struct task_move_only
{
Expand Down

0 comments on commit 2437112

Please sign in to comment.