Skip to content

feat: release native objects with try-with-resources - #544

Merged
devopvoid merged 2 commits into
mainfrom
feat/try-with-resources
Nov 5, 2026
Merged

devopvoid merged 2 commits into
mainfrom
feat/try-with-resources

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

DisposableNativeObject now implements AutoCloseable, with close() delegating to dispose(). SyncClock and VideoCapture extend it.

RTCDataChannel keeps its close(), which only closes the channel, so it still needs dispose().

Also corrects the documented DTMF limits to what WebRTC enforces: 40 to 6000 ms duration, at least 30 ms gap.

@devopvoid
devopvoid merged commit 62a5f7c into main Nov 5, 2026
26 checks passed
@devopvoid
devopvoid deleted the feat/try-with-resources branch November 5, 2026 14:00
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.

1 participant