Skip to content

Commit

Permalink
Fix cancellation typos
Browse files Browse the repository at this point in the history
  • Loading branch information
NightlyNexus committed Feb 18, 2016
1 parent 2780ca4 commit 5f7baa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Version 2.0.0-beta3 *(2016-01-05)*
`client(OkHttpClient)` method on `Retrofit.Builder` still exists as a convenience.
* New: `isExecuted()` method returns whether a `Call` has been synchronously or asynchronously executed.
* New: `isCanceled()` method returns whether a `Call` has been canceled. Use this in `onFailure` to determine
whether the callback was invoked from cancelation or actual transport failure.
whether the callback was invoked from cancellation or actual transport failure.
* New: `converter-scalars` module provides a `Converter.Factory` for converting `String`, the 8 primitive
types, and the 8 boxed primitive types as `text/plain` bodies. Install this before your normal converter
to avoid passing these simple scalars through, for example, a JSON converter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static final class ExecutorCallbackCall<T> implements Call<T> {
callbackExecutor.execute(new Runnable() {
@Override public void run() {
if (delegate.isCanceled()) {
// Emulate OkHttp's behavior of throwing/delivering an IOException on cancelation
// Emulate OkHttp's behavior of throwing/delivering an IOException on cancellation.
callback.onFailure(call, new IOException("Canceled"));
} else {
callback.onResponse(call, response);
Expand Down

0 comments on commit 5f7baa0

Please sign in to comment.