Skip to content

Commit

Permalink
Fix type spec of Mailer.deliver_later/1
Browse files Browse the repository at this point in the history
  • Loading branch information
lasseebert committed Feb 23, 2021
1 parent 9e13937 commit 14a2b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bamboo/mailer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ defmodule Bamboo.Mailer do
Bamboo.Mailer.deliver_now!(config.adapter, email, config, opts)
end

@spec deliver_later(Bamboo.Email.t()) :: Bamboo.Email.t()
@spec deliver_later(Bamboo.Email.t()) :: {:ok, Bamboo.Email.t()} | {:error, Exception.t() | String.t()}
def deliver_later(email, opts \\ []) do
config = build_config(opts)
Bamboo.Mailer.deliver_later(config.adapter, email, config)
Expand Down

0 comments on commit 14a2b2f

Please sign in to comment.