-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
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
Rename Event.failed
to Event.error
#60
Comments
The event was intentionally (re)named ReactiveCocoa/ReactiveCocoa#2505 |
And also #8. |
I think it makes sense as-is. failed is the event; error is the instance that initiates/describes it. An error causes the stream to fail. |
Thanks for references. Anyway, this is too trivial issue to discuss, so I will close. |
This is just a matter of taste, but
observer.sendFailed()
has been renamed toobserver.send(error:)
, so I thinkEvent.failed
should be renamed toEvent.error
as well (and also other methods likeon(failed:)
).Or, renaming
observer.send(error:)
toobserver.send(failed:)
improves consistency too.(I prefer
send(error:)
though)The text was updated successfully, but these errors were encountered: