diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-13 14:17:51 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-13 14:17:51 +0800 |
| commit | acf0804b5f9bdc2796d847919a8ae20103be600a (patch) | |
| tree | 96eb75fad0d12e4a6c0c8e2148b555899602b540 /crates/system_action/action_macros/src/lib.rs | |
| parent | 67fb8ec01b351c6c9fd2af321166bb92250b1218 (diff) | |
feat: implement asynchronous action call system
- Add async callback support with proper argument passing
- Implement remote action invocation via TCP connection
- Add hello_world_action example demonstrating async communication
- Improve ActionPool with type-safe async processing
- Update client registry for remote action handling
- Enhance ActionContext with better instance management
- Support both local and remote action execution modes
Diffstat (limited to 'crates/system_action/action_macros/src/lib.rs')
| -rw-r--r-- | crates/system_action/action_macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/system_action/action_macros/src/lib.rs b/crates/system_action/action_macros/src/lib.rs index aa1c696..d1a47ee 100644 --- a/crates/system_action/action_macros/src/lib.rs +++ b/crates/system_action/action_macros/src/lib.rs @@ -89,12 +89,12 @@ fn generate_action_struct(input_fn: ItemFn, _is_local: bool) -> proc_macro2::Tok #[doc = ""] #[doc = "Register the action to the pool."] #[doc = "```ignore"] - #[doc = "YourAction::register_to_pool(&mut pool);"] + #[doc = "register_your_func(&mut pool);"] #[doc = "```"] #[doc = ""] #[doc = "Process the action at the pool."] #[doc = "```ignore"] - #[doc = "let result = YourAction::process_at_pool(&pool, ctx, arg).await?;"] + #[doc = "let result = proc_your_func(&pool, ctx, arg).await?;"] #[doc = "```"] #fn_vis #fn_sig #fn_block } |
