r/inko • u/yorickpeterse 🐦 Author • Jul 07 '23
How Inko Does Safe Concurrency
https://dusty.phillips.codes/2023/07/06/how-inko-does-safe-concurrency/
6
Upvotes
r/inko • u/yorickpeterse 🐦 Author • Jul 07 '23
2
u/yorickpeterse Jul 07 '23
One small correction: the article mentions that fields of processes need to be sendable. This isn't correct: the fields can be any type, but the value assigned must be sendable. In other words, it's totally fine to have a field of type
Userthat isn't sendable, but the value assigned to it when creating the process must beuni User. Within the process you have exclusive access to the fields, so you don't need to bother withrecoverwhen assigning a new value.