1 Star 0 Fork 0

jack/protoactor-go

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
message.go 790 Bytes
Copy Edit Raw Blame History
490689386@qq.com authored 2025-05-19 14:50 +08:00 . 初始化
package actor
// The Producer type is a function that creates a new actor
type Producer func() Actor
type ProducerWithActorSystem func(system *ActorSystem) Actor
// Actor is the interface that defines the Receive method.
//
// Receive is sent messages to be processed from the mailbox associated with the instance of the actor
type Actor interface {
Receive(c Context)
}
// The ReceiveFunc type is an adapter to allow the use of ordinary functions as actors to process messages
type ReceiveFunc func(c Context)
// Receive calls f(c)
func (f ReceiveFunc) Receive(c Context) {
f(c)
}
type ReceiverFunc func(c ReceiverContext, envelope *MessageEnvelope)
type SenderFunc func(c SenderContext, target *PID, envelope *MessageEnvelope)
type ContextDecoratorFunc func(ctx Context) Context
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wujianhai/protoactor-go.git
git@gitee.com:wujianhai/protoactor-go.git
wujianhai
protoactor-go
protoactor-go
5633fe2499dd

Search