def after_process(state, %Job{})
if state == :complpete do
MyApp.broadcast(
topic,
{:success, some_data}
)
else
MyApp.broadcast(
topic,
{:fail, _some_data}
)
end
end
As the title suggests, I’m using the after_process
function to inform a client about the request’s progress. However, I need to pass along additional data, specifically the result from process
function, represented as {:ok, result}. Is there a way to achieve this?