~thatonelutenist/actm

8c4be4599b97a490df48e1de62d82f9c15b3b32c — Nathan McCarty 1 year, 10 months ago 1e4da6c
feat: Add prelude
1 files changed, 12 insertions(+), 0 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +12 -0
@@ 26,3 26,15 @@ pub use async_trait;
pub use enum_dispatch;
/// Reexport `flume`, as this appears in the public api
pub use flume;

/// Commonly used types from this library
pub mod prelude {
    pub use crate::{
        async_actor,
        executor::Executor,
        sync_actor,
        traits::{Actor, Event, EventConsumer, EventProducer},
        types::CompletionToken,
        util::{AsyncActor, AsyncActorError, SyncActor, SyncActorError, WrappedEvent},
    };
}