swift-distributed-actors
swift-distributed-actors copied to clipboard
ClusterSystem is leaking
I've noticed this part is commented in shutdown function:
/*
self.lazyInitializationLock.withWriterLockVoid {
// self._serialization = nil // FIXME: need to release serialization
}
*/
and serialisation context and userInfo (encoder.userInfo[.actorSystemKey] = self.context.system) are holding strong reference to cluster system. Worth checking.