aktoro-rs / aktoro Goto Github PK
View Code? Open in Web Editor NEW[WIP] Yet another Actor framework for Rust.
License: MIT License
[WIP] Yet another Actor framework for Rust.
License: MIT License
The crates need an overall cleanup of their documentation.
Spawn::try_send_action
should be used instead.
aktoro-raw
:
action::*
actor::*
channel::*
context::*
control::*
event::*
message::*
runtime::*
spawned::*
update::*
aktoro-channel
:
builder::*
channel::*
counter::*
error::*
message::*
notify::*
queue::*
receiver::*
sender::*
aktoro-context
:
action::*
channel::*
context::*
control::*
event::*
message::*
respond::*
update::*
aktoro-runtime
:
actor::*
error::*
runtime::*
Actors should be able to spawn other actors.
Actors need to be able to open new TCP/UDP streams/sockets.
Blocked by rust-lang/rust#61872.
NOTE: TCP and UDP streams/sockets have been released in v0.1.0-alpha.3
but in a useless state (they can't be opened by actors directly and actors can't send or receive data to/from them).
Context<A: Actor>::stop(&mut self)
: alias for Context<A: Actor, S: Actor::Status>::set_status(&mut self, status: S)
where status == S::stopped()
Context<A: Actor>::kill(&mut self)
: alias for Context<A: Actor, S: Actor::Status>::set_status(&mut self, status: S)
where status == S::dead()
Context<A: Actor>::error(&mut self, err: A::Error)
: emits an error to the Spawned
handleContext<A: Actor>::stop_error(&mut self, err: A::Error)
: emits an error to the Spanwed
handle and stop the actor gracefullyContext<A: Actor>::kill_error(&mut self, err: A::Error)
: kills the actor and return the error to the Spawned
handleActors that are subscribed to a stream or receiving data from an AsyncRead
should be able to unsubscribe from them (returning the original stream) or to close them.
TODO: write a list of the tests wanted
The runtime's wait
method might be removed and replaced with a Stream
implementation.
Actors should be able to open a stream and receive new data from them as messages.
This is useful, for example, when listening for new TCP connections.
There should be an HTTP client and server library using aktoro and made to be used with it.
Context::wait
could be understood as if the context is waiting for the future to yield before handling other futures and messages.Context::blocking_wait
would then make no sense.Context::exec
and Context::blocking_exec
could be renamed and used as wait
and blocking_name
's new names.Actors should be able to await
a future.
This is useful, for example, when trying to open a new TCP connection.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.