Skip to content

Commit 83abed6

Browse files
doc: Changes wait to await
1 parent 477d612 commit 83abed6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,12 @@ defer {
200200
try? group.syncShutdownGracefully()
201201
}
202202

203-
api.execute(
203+
let result = try await api.execute(
204204
request: "{ message { content } }",
205205
context: Context(),
206206
on: group
207-
).whenSuccess { result in
208-
print(result)
209-
}
207+
)
208+
print(result)
210209
```
211210

212211
The output will be:

0 commit comments

Comments
 (0)