Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider 'session' objects #8

Open
niloc132 opened this issue Dec 8, 2015 · 0 comments
Open

Consider 'session' objects #8

niloc132 opened this issue Dec 8, 2015 · 0 comments

Comments

@niloc132
Copy link
Owner

niloc132 commented Dec 8, 2015

This could take several forms, but the goal is to allow 'sub' client/server interfaces for ongoing, scoped communication. One example would be passing some callback-like type to a method which can then be invoked several times. Another would be to allow client/server methods to return non-void interface types, to be asynchronously created on the other end of the wire, and interacted with in the same way as a client/server type.

Combining both ideas give us the ability to easily spin up matched pairs of interfaces. Using only one of the two requires that the client/server have matched pairs of methods that have to be invoked to correctly start this situation.

In any case, these session types must have some kind of close method to shut down the corresponding instance on the far side of the wire. Failure to do so would result in a memory leak (which is why Callbacks are single-use-only).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant