-
Notifications
You must be signed in to change notification settings - Fork 27
Clean up algorithms (removing main thread streams) #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| |transform|.{{[[worker]]}}'s {{WorkerGlobalScope}} to run the following steps: | ||
| 1. Let |transformer| be the {{RTCRtpScriptTransformer}} object associated with |transform|. | ||
| 1. [=ReadableStream/cancel=] |transformer|.{{[[readable]]}}. | ||
| 1. [=WritableStream/abort=] |transformer|.{{[[writable]]}}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure this is pre-existing behaviour, but this is a behaviour I like.
We should check what implementations are doing.
I would go with an AbortError as a reason to cancel.
|
I'll do a follow-up review tomorrow. I think that for the handling of streams in case of unsetting the transform, we might want a dedicated issue. |
Fixes #229.
Preview | Diff