actor-lite 0.1.1

基于 tokio 的轻量 actor 抽象:一份核(命令通道 + 状态/进度 + 事件 + 取消)+ 异步壳(tokio::spawn)与线程壳(独占线程,可装 !Send 资源)
Documentation
#![doc = include_str!("../README.md")]

#[cfg(feature = "async")]
mod async_actor;

mod core;

#[cfg(feature = "manager")]
pub mod manager;

mod thread_actor;
mod wait;

#[cfg(feature = "async")]
pub use async_actor::AsyncActor;

pub use core::{ActorContext, ActorCore, ActorHandle, CancelToken, SendCmdError};
pub use thread_actor::{
    CmdWait, STARTUP_TIMEOUT, SpawnError, ThreadActor, spawn_thread, try_spawn_thread,
};
pub use tokio::sync::{broadcast, mpsc, watch};