We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
smtpmailer.SmtpMailer.connect({ host: 'hostname', port: 587, auth: { username: 'user', password: 'pass' } }).next(mailer -> mailer.send(email).next( _ -> mailer.close() ) ).handle(function(res) { switch res { case Success(_): trace('Email sent!'); case Failure(e): { trace('Something went wrong: '+e); } } });
should change too
_ -> mailer.close
(no brackets)
as you get an error in current version:
characters 20-34 : Cannot use Void as value
The text was updated successfully, but these errors were encountered:
I think you should replace .next with .withSideEffect instead
.next
.withSideEffect
Sorry, something went wrong.
No branches or pull requests
should change too
(no brackets)
as you get an error in current version:
The text was updated successfully, but these errors were encountered: