Currently, ViewState and SheetStack are classes, but we should refactor them into actors so that we can take advantage of the race-prevention guarantees that actors bring. As we migrate to async-await, all shared, mutable state that can be accessed from different asynchronous tasks should be actor-isolated.
Currently,
ViewState
andSheetStack
are classes, but we should refactor them into actors so that we can take advantage of the race-prevention guarantees that actors bring. As we migrate to async-await, all shared, mutable state that can be accessed from different asynchronous tasks should be actor-isolated.