Skip to content

Conversation

john-michaelburke
Copy link
Contributor

@john-michaelburke john-michaelburke commented Mar 30, 2022

Reverts logic from #44 and moves it to two helper functions for reading/writing settings with a timeout duration to use with the context.

src/context.rs Outdated
}

pub fn cancel_rx(&self) -> Receiver<()> {
self.cancel_rx.clone()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might need to increment num_chans here. But also not sure how you can decrement it if the channel gets dropped. These channels aren't really intended to be apart if the public api, why do you need them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notoriaga I was trying to use it here:
swift-nav/swift-toolbox#487

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notoriaga We can get this merged in and then use the new release in swift-toolbox PR.

@john-michaelburke john-michaelburke force-pushed the john-michaelburke/cpp-693 branch from 1a123c0 to a8b9b73 Compare March 30, 2022 21:11
@john-michaelburke john-michaelburke marked this pull request as ready for review March 30, 2022 21:13
@john-michaelburke john-michaelburke merged commit 8300be7 into main Mar 30, 2022
@john-michaelburke john-michaelburke deleted the john-michaelburke/cpp-693 branch March 30, 2022 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants