Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/promises.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ personFetcher.fetch('John');

## Migrating from callbacks to promises

Migrating from callbacks to promises
------------------------------------

The `result` parameter of the fulfilled promise value is equivalent to the first parameter in [`execute`](/api-client-library/javascript/reference/referencedocs#gapiclientRequestexecute)'s callback. To update your code to use promises, change your code as shown in the before and after examples below.

The following example shows using a callback:
Expand All @@ -249,4 +246,4 @@ gapi.client.request({
}).then(function(resp) {
processResponse(resp.result);
});
```
```