grisp_updater_sink behaviour (grisp_updater v2.3.0)
View SourceSummary
Callbacks
Deliver a data chunk. Return {abort, Reason} to stop the stream.
Final data fragment and end-of-stream notification.
Notify the sink of a stream error; implementations should cleanup resources.
Callbacks
-callback sink_data(StreamRef :: reference(), Params :: term(), Data :: binary()) -> ok | {abort, Reason :: term()}.
Deliver a data chunk. Return {abort, Reason} to stop the stream.
Final data fragment and end-of-stream notification.
Notify the sink of a stream error; implementations should cleanup resources.