Skip to content
Discussion options

You must be logged in to vote

Requiring exclusive access for these methods on all implementations seems like a strong requirement that isn't necessary. In the case where we are forwarding this over stdio, there isn't a strong need for it.

If you are implementing this in process, than what we do is use interior mutability (RefCell or Mutex or other sync primitive) to handle updating the internal state. We usually use this sort of pattern with Zed anyway, so it fit in well, and it infers less about the particular implementation. Hopefully that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bezdomniy
Comment options

Answer selected by bezdomniy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants