Coerce-rs is an asynchronous (async / await) Actor runtime for Rust. It allows for extremely simple yet powerful actor-based multithreaded application development.
Mutex
,RwLocketc).
Coerce uses Tokio’s MPSC channels (tokio :: sync :: mpsc :: channel), every actor created spawns a task listening to messages from aReceiver, handling and awaiting the result of the message. Every reference (ActorRef
, which can be cloned.
Actors can be stopped and actor references can be retrieved by ID (currentlyUuid) from anywhere in your application. Actors are automatically dropped (andStopped) when all references are dropped.
Example
************** (struct) ****************************************** EchoActor{ } # [async_trait]
GIPHY App Key not set. Please check settings