-
Couldn't load subscription status.
- Fork 41
handle_child_terminated #894
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
Conversation
8b287af to
010ef5c
Compare
lib/membrane/bin.ex
Outdated
| @doc """ | ||
| Callback invoked after a child terminates. | ||
| Terminated child won't occur in the callback context. It is allowed to spawn a new child with the same |
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.
| Terminated child won't occur in the callback context. It is allowed to spawn a new child with the same | |
| Terminated child won't be present in the context of this callback. It is allowed to spawn a new child with the same |
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.
It also applies to changes in Membrane.Pipeline
| assert_pipeline_notified(pipeline, child, :handle_playing) | ||
| end | ||
|
|
||
| defp assert_grandhild_playing(pipeline, child, grandchild) do |
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.
Since you are already touching that file, please rename assert_grandhild_playing into assert_grandchild_playing ;)
| use Membrane.Endpoint | ||
| end | ||
|
|
||
| defmodule PadlessElemeentPipeline do |
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.
| defmodule PadlessElemeentPipeline do | |
| defmodule PadlessElementPipeline do |
CHANGELOG.md
Outdated
|
|
||
| ## 1.1.2 | ||
| * Remove 'failed to insert a metric' stalker warning [#849](https://github.com/membraneframework/membrane_core/pull/849) | ||
| * Add new callback `handle_chiild_terminated/3`. [#894](https://github.com/membraneframework/membrane_core/pull/894) |
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.
| * Add new callback `handle_chiild_terminated/3`. [#894](https://github.com/membraneframework/membrane_core/pull/894) | |
| * Add new callback `handle_child_terminated/3`. [#894](https://github.com/membraneframework/membrane_core/pull/894) |
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.
And remember to write about all those assert_handle_child_terminated assertions
lib/membrane/testing/assertions.ex
Outdated
| refution = :"refute_#{action}" | ||
|
|
||
| @doc """ | ||
| Asserts `Membrane.Testing.Pipeline` executed callback `#{callback}/3` for a specific |
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.
| Asserts `Membrane.Testing.Pipeline` executed callback `#{callback}/3` for a specific | |
| Asserts that `Membrane.Testing.Pipeline` executed callback `#{callback}/3` for a specific |
lib/membrane/testing/assertions.ex
Outdated
| end | ||
|
|
||
| @doc """ | ||
| Refutes that `Membrane.Testing.Pipeline` won't execute callback `#{callback}/3` for |
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.
| Refutes that `Membrane.Testing.Pipeline` won't execute callback `#{callback}/3` for | |
| Refutes that `Membrane.Testing.Pipeline` will execute callback `#{callback}/3` for |
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.
🥇
CHANGELOG.md
Outdated
|
|
||
| ## 1.1.2 | ||
| * Remove 'failed to insert a metric' stalker warning [#849](https://github.com/membraneframework/membrane_core/pull/849) | ||
| * Add new callback `handle_chiild_terminated/3` along with new assertions. [#894](https://github.com/membraneframework/membrane_core/pull/894) |
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.
| * Add new callback `handle_chiild_terminated/3` along with new assertions. [#894](https://github.com/membraneframework/membrane_core/pull/894) | |
| * Add new callback `handle_child_terminated/3` along with new assertions. [#894](https://github.com/membraneframework/membrane_core/pull/894) |
Relates to #889