Skip to content

Conversation

@fwcd
Copy link
Member

@fwcd fwcd commented Jun 1, 2024

This adds a guard to streams that automatically issues a STOP once dropped.

Implementing this required a rather major change to the implementation, namely wrapping the internal state into Arc/Mutex/atomics to make Lighthouse cloneable, since the stop guard requires keeping a reference to the Lighthouse alive (dynamically). This refactoring is implemented in the lh-shared-state branch, which this PR is based upon.

@fwcd fwcd added the enhancement New feature or request label Jun 1, 2024
@fwcd fwcd force-pushed the stop-guard branch 2 times, most recently from 8b2bbc9 to 634645c Compare July 17, 2024 23:10
fwcd added 2 commits March 4, 2025 03:12
We deal with the type inference problem for empty paths (&[]) by
providing a small convenience macro (root![]) that expresses the root
path.

Closes #15
@fwcd fwcd marked this pull request as ready for review March 4, 2025 03:31
@fwcd fwcd changed the title Stop streams automatically once dropped Stop streams automatically once dropped and make path params more generic Mar 4, 2025
@fwcd fwcd merged commit c7f15ae into main Mar 4, 2025
1 check passed
@fwcd fwcd deleted the stop-guard branch March 4, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants