Skip to content

Commit

Permalink
docs: remove stray copy and paste line (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnduffell authored Aug 29, 2024
1 parent f197ee4 commit 9b44396
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,6 @@ abortController.abort();
await requestPromise;
```

For a full pagination deep dive, please check out our [blog post](https://aws.amazon.com/blogs/developer/pagination-using-async-iterators-in-modular-aws-sdk-for-javascript/).

#### AbortController Example

The following code snippet shows how to upload a file using S3's putObject API in the browser with support to abort the upload. First, create a controller using the `AbortController()` constructor, then grab a reference to its associated AbortSignal object using the AbortController.signal property. When the `PutObjectCommand` is called with `.send()` operation, pass in AbortController.signal as abortSignal in the httpOptions parameter. This will allow you to abort the PutObject operation by calling `abortController.abort()`.
Expand Down

0 comments on commit 9b44396

Please sign in to comment.