-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improve callbacks return types #702
Conversation
….handle_init/2`. Fix a missleading information in docs about returning `:latency` action from `Membrane.Element.Base.handle_init`
lib/membrane/bin/action.ex
Outdated
@@ -13,9 +13,10 @@ defmodule Membrane.Bin.Action do | |||
@typedoc """ | |||
Action that manages the end of the component setup. | |||
|
|||
By default, component setup ends with the end of `c:Membrane.Bin.handle_setup/2` callback. | |||
By default, component setup ends with the end of callback. |
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.
?
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.
done
| end_of_stream | ||
| terminate | ||
| redemand |
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.
this is duplicated
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.
done
lib/membrane/element/action.ex
Outdated
Depending on element type, callback, current playback and other | ||
circumstances there may be different actions available. | ||
""" | ||
|
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.
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.
done
lib/membrane/element/action.ex
Outdated
| redemand | ||
|
||
@typedoc """ | ||
Type that defines a union of actions that may be returned from some element callbacks. |
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.
Type that defines a union of actions that may be returned from some element callbacks. | |
Type that defines a union of actions that may be returned from most of the element callbacks. |
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.
done
Type that defines a union of actions that may be returned from some element callbacks. | ||
|
||
Depending on element type, callback, current playback and other | ||
circumstances there may be different actions available. |
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.
circumstances there may be different actions available. | |
circumstances there may be different actions available. | |
Check the typespec and documentation of particular callbacks | |
for details. |
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.
done
lib/membrane/element/base.ex
Outdated
# @typedoc """ | ||
# Type that defines all valid return values from most callbacks. | ||
# """ | ||
# @type callback_return :: {[Action.t()], Element.state()} | ||
|
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.
# @typedoc """ | |
# Type that defines all valid return values from most callbacks. | |
# """ | |
# @type callback_return :: {[Action.t()], Element.state()} |
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.
done
No description provided.