Skip to content

Commit

Permalink
Add example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Nov 15, 2023
1 parent ed04ff9 commit 9177cfe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,14 @@ The response handlers for each request type are similar to one another. The argu

Note: Response handlers are required for all endpoints. Progress handlers, on the other hand, are optional for all endpoints.

#### Swift Concurrency

As of the 10.0.0 release, all of the request types also support Swift Concurrency (`async`/`await`) via the async `response()` function.

```swift
let response = try await client.files.createFolder(path: "/test/path/in/Dropbox/account").response()
```

---

### Request types
Expand Down

0 comments on commit 9177cfe

Please sign in to comment.