Skip to content

Commit f9a90e7

Browse files
authoredFeb 15, 2022
docs: update coroutine references in README (#1154)
1 parent 6fad701 commit f9a90e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎coroutines/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Now we can call a parse query using a synchronous style, this is possible when w
1818

1919
```kotlin
2020
launch { // Coroutine builder
21-
val cat = ParseQuery.getQuery(...).coroutineFind()
21+
val cat = ParseQuery.getQuery(...).suspendFind()
2222
// get cats without callback
2323
}
2424
```
25-
We use a coroutine builder because `coroutineFind()` is a suspend function.
25+
We use a coroutine builder because `suspendFind()` is a suspend function.
2626

2727
We can also, use a function like a coroutine builder, it will be provider us a flexibility call our query without any extensions function.
2828

@@ -56,7 +56,7 @@ launch { // Coroutine builder
5656
setPassword("my pass")
5757
setEmail("email@example.com")
5858
}.also {
59-
coroutineSignUp()
59+
suspendSignUp()
6060
}
6161
}
6262
```

0 commit comments

Comments
 (0)
Please sign in to comment.