Opus.Pipeline.Stage.Link (Opus v0.8.4) View Source
The link stage calls the specified pipeline module.
When defined with a non Opus.Pipeline
module, it ignores it.
Example
defmodule AddOnePipeline do
use Opus.Pipeline
step :add, with: &(&1 + 1)
end
defmodule MultiplicationPipeline do
use Opus.Pipeline
step :double, with: &(&1 * 2)
link AddOnePipeline
end
MultiplicationPipeline.call 5
# {:ok, 11}