aboutsummaryrefslogtreecommitdiff
path: root/core/src/lib.rs
blob: 6c40909bb21a719fb6798b9f41b3f4ed615b2a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// A set of helper tools and functions.
pub mod utils;

/// A module containing async utilities that work with the
/// [`smol`](https://github.com/smol-rs/smol) async runtime.
pub mod async_utils;

/// Represents karyons's Core Error.
pub mod error;

/// [`event::EventSys`] Implementation 
pub mod event;

/// A simple publish-subscribe system [`Read More`](./pubsub/struct.Publisher.html)
pub mod pubsub;

use smol::Executor as SmolEx;
use std::sync::Arc;

/// A pointer to an Executor
pub type Executor<'a> = Arc<SmolEx<'a>>;

/// A Global Executor
pub type GlobalExecutor = Arc<SmolEx<'static>>;

use error::Result;