v0.7.0
版本发布时间: 2023-02-02 22:54:11
slawlor/ractor最新发布版本:v0.12.0(2024-10-04 22:31:32)
Ractor v0.7.0 is released!
This is a small breaking change from v0.6.X in that we've added support for an Arguments to be passed to pre_start
on actor initialization. This allows you to pass owned args to an actor's startup routine, rather than reading shared values from &self
.
This is helpful if you need to say consume values in an actor's initialization. For example, taking a TcpSocket
and breaking it into OwnedReadHalf
and OwnedWriteHalf
means that pre_start
can't have a shared reference to the socket. This also should remove the need for "initialization" messages for most actors.