3 ms·
Think C++ iterators. Those maintain state, but not mutable state. You have full control over the iteration,. but everything is immutable and thread-safe.
by paulddraper 11y ago
Think C++ iterators. Those maintain state, but not mutable state.
You have full control over the iteration,. but everything is immutable and thread-safe.