Skip to content

feat: Added a new example on how to implement a handler that would capture some local variable as its shared state#6

Merged
frol merged 1 commit intoelast0ny:masterfrom
frol:feature/example-passing-context
Oct 15, 2020
Merged

feat: Added a new example on how to implement a handler that would capture some local variable as its shared state#6
frol merged 1 commit intoelast0ny:masterfrom
frol:feature/example-passing-context

Conversation

@frol
Copy link
Copy Markdown
Collaborator

@frol frol commented Oct 4, 2020

I opted to drop the cleanup code to avoid wrapping the client with RwLock, so this example does not do a proper disconnect

NOTE: if #5 lands, we need to update this example by adding <'_> to RpcFunc and RpcFuture (it seems that lifetime ellision just worked)

…pture some local variable as its shared state
@frol frol requested a review from elast0ny October 4, 2020 20:23
@frol frol merged commit 5b55c7d into elast0ny:master Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant