Skip to content

Commit

Permalink
[docs] Remove incorrect usage of launch function (expo#28634)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmccall authored May 7, 2024
1 parent 7c6833e commit 9585162
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/pages/modules/module-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ This scope's lifecycle is bound to the module's lifecycle - all unfinished suspe

```kotlin Kotlin
AsyncFunction("suspendFunction") Coroutine { message: String ->
launch {
return@Coroutine message
}
// You can execute other suspendable functions here.
// For example, you can use `kotlinx.coroutines.delay` to delay resolving the underlying promise.
delay(5000)
return@Coroutine message
}
```

Expand Down

0 comments on commit 9585162

Please sign in to comment.