Documentation
¶
Overview ¶
Example ¶
mailbox := make(chan any, 3)
callbacks := &actorHandler{stopped: make(chan struct{})}
Start[any](context.Background(), mailbox, callbacks)
mailbox <- 1
mailbox <- 2
mailbox <- 3
close(mailbox)
<-callbacks.stopped
Output: processing message 1 processing message 2 processing message 3
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(actorOptions) actorOptions
func WithAbsoluteTimeout ¶
func WithIdleTimeout ¶
func WithRespawnAfter ¶
func WithRespawnAfter(respawnAfter RequestCount) Option
type RequestCount ¶
type RequestCount int
Click to show internal directories.
Click to hide internal directories.