summaryrefslogtreecommitdiff
path: root/examples/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src')
-rw-r--r--examples/src/bin/example_action_system.rs18
-rw-r--r--examples/src/lib.rs1
2 files changed, 0 insertions, 19 deletions
diff --git a/examples/src/bin/example_action_system.rs b/examples/src/bin/example_action_system.rs
deleted file mode 100644
index 776c982..0000000
--- a/examples/src/bin/example_action_system.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-use action_system::{action::ActionContext, action_pool::ActionPool, macros::action_gen};
-use tcp_connection::error::TcpTargetError;
-
-#[tokio::main]
-async fn main() {
- let mut pool = ActionPool::new();
- register_print_name_action(&mut pool);
-
- proc_print_name_action(&pool, ActionContext::local(), "World".to_string())
- .await
- .unwrap();
-}
-
-#[action_gen]
-async fn print_name_action(_ctx: ActionContext, name: String) -> Result<(), TcpTargetError> {
- println!("Hello, {}!", name);
- Ok(())
-}
diff --git a/examples/src/lib.rs b/examples/src/lib.rs
deleted file mode 100644
index 8b13789..0000000
--- a/examples/src/lib.rs
+++ /dev/null
@@ -1 +0,0 @@
-