You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(async)!: propagate stop errors in AsyncSCStream; consolidate stop delegate
Async completeness:
- AsyncSCStream now installs a delegate that, on an error stop (display
disconnected, permission revoked, ...), closes the sample iterator so
next().await resolves to None instead of pending forever, and records the
SCError. Add AsyncSCStream::take_error() to retrieve it after the loop.
- AsyncSCStream::new no longer silently swallows a failed output-handler
registration: it closes the stream and records the error.
Callback ergonomics:
- The stream engine now dispatches only the canonical did_stop_with_error on an
error stop instead of also firing stream_did_stop for the same event.
- Deprecate SCStreamDelegateTrait::stream_did_stop (ScreenCaptureKit reports
stops only via didStopWithError). StreamCallbacks::on_stop keeps working,
now driven by did_stop_with_error.
All 821 tests pass; clippy clean. Updated CHANGELOG and tests.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments