I'm learning akka.net. And I don't understand why i is not marked as volatile.
i
volatile
Can anyone explain please?
public class TestActor : UntypedActor { private int i; protected override void OnReceive(object message) { i++; } }
Akka.NET ensures that the implementation details don't affect the single-threadedness of handling the actor's state.
2.1m questions
2.1m answers
60 comments
57.0k users