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.
1.4m articles
1.4m replys
5 comments
57.0k users