Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 Move scheduler implementations to schedulers directory #21

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/async/sync_wait.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <async/concepts.hpp>
#include <async/runloop_scheduler.hpp>
#include <async/schedulers/runloop_scheduler.hpp>
#include <async/tags.hpp>
#include <async/type_traits.hpp>

Expand Down
7 changes: 4 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ function(add_tests)
CATCH2
FILES
"${name}.cpp"
INCLUDE_DIRECTORIES
${PROJECT_SOURCE_DIR}/test
LIBRARIES
warnings
async
Expand All @@ -18,7 +20,6 @@ add_tests(
forwarding_query
freestanding_sync_wait
hosted_sync_wait
inline_scheduler
just
just_error
just_error_result_of
Expand All @@ -31,15 +32,15 @@ add_tests(
read
repeat
retry
runloop_scheduler
split
stop_token
then
thread_scheduler
transfer
type_traits
upon_error
upon_stopped
variant_sender
when_all
when_any)

add_subdirectory(schedulers)
4 changes: 2 additions & 2 deletions test/freestanding_sync_wait.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/on.hpp>
#include <async/read.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/schedulers/thread_scheduler.hpp>
#include <async/then.hpp>
#include <async/thread_scheduler.hpp>
#include <async/variant_sender.hpp>

#define SIMULATE_FREESTANDING
Expand Down
4 changes: 2 additions & 2 deletions test/hosted_sync_wait.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/on.hpp>
#include <async/read.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/schedulers/thread_scheduler.hpp>
#include <async/sync_wait.hpp>
#include <async/then.hpp>
#include <async/thread_scheduler.hpp>
#include <async/variant_sender.hpp>

#include <catch2/catch_test_macros.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/let_error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/let_error.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>
#include <async/variant_sender.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/let_stopped.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/let_stopped.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>
#include <async/variant_sender.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/let_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/let_value.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>
#include <async/variant_sender.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/on.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/just_result_of.hpp>
#include <async/on.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/stop_token.hpp>
#include <async/when_all.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/on.hpp>
#include <async/read.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/stop_token.hpp>
#include <async/sync_wait.hpp>
#include <async/tags.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/repeat.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/let_value.hpp>
#include <async/on.hpp>
#include <async/repeat.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/variant_sender.hpp>
#include <async/when_all.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/retry.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/let_value.hpp>
#include <async/on.hpp>
#include <async/retry.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/variant_sender.hpp>
#include <async/when_all.hpp>

Expand Down
1 change: 1 addition & 0 deletions test/schedulers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_tests(inline_scheduler runloop_scheduler thread_scheduler)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <async/completion_scheduler.hpp>
#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/inline_scheduler.hpp>
#include <async/schedulers/inline_scheduler.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <async/completion_scheduler.hpp>
#include <async/just.hpp>
#include <async/on.hpp>
#include <async/runloop_scheduler.hpp>
#include <async/schedulers/runloop_scheduler.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <async/completion_scheduler.hpp>
#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/thread_scheduler.hpp>
#include <async/schedulers/thread_scheduler.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/split.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/on.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/split.hpp>
#include <async/then.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/then.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <async/concepts.hpp>
#include <async/env.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>

#include <catch2/catch_test_macros.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transfer.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/on.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>
#include <async/transfer.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/type_traits.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/type_traits.hpp>

#include <catch2/catch_test_macros.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/upon_error.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>

#include <catch2/catch_test_macros.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/upon_stopped.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "detail/common.hpp"

#include <async/concepts.hpp>
#include <async/inline_scheduler.hpp>
#include <async/just.hpp>
#include <async/schedulers/inline_scheduler.hpp>
#include <async/then.hpp>

#include <catch2/catch_test_macros.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/when_all.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <async/concepts.hpp>
#include <async/just.hpp>
#include <async/let_value.hpp>
#include <async/schedulers/thread_scheduler.hpp>
#include <async/sync_wait.hpp>
#include <async/then.hpp>
#include <async/thread_scheduler.hpp>
#include <async/variant_sender.hpp>
#include <async/when_all.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/when_any.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include <async/concepts.hpp>
#include <async/just.hpp>
#include <async/schedulers/thread_scheduler.hpp>
#include <async/sync_wait.hpp>
#include <async/then.hpp>
#include <async/thread_scheduler.hpp>
#include <async/type_traits.hpp>
#include <async/when_any.hpp>

Expand Down