You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of #1082, the introduction of the Host object and associated ProcessState, we had to place the Host object behind a RefCell to leverage the interior mutability pattern and defer borrow checks to runtime. This is because we take a mutable and immutable reference of the Process object when invoking Host requests. However, we never modify any of the fields of the Process struct which are read as immutable. To remove the requirement for the usage of the RefCell we should refactor the Process struct as follows:
As part of #1082, the introduction of the
Host
object and associatedProcessState
, we had to place theHost
object behind aRefCell
to leverage the interior mutability pattern and defer borrow checks to runtime. This is because we take a mutable and immutable reference of theProcess
object when invokingHost
requests. However, we never modify any of the fields of theProcess
struct which are read as immutable. To remove the requirement for the usage of theRefCell
we should refactor theProcess
struct as follows:See this comment thread for more insight: #1082 (comment)
The text was updated successfully, but these errors were encountered: