Skip to content

Commit

Permalink
Remove suspend from JVM functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-lorenzo committed Aug 3, 2023
1 parent 12c546e commit 830a9ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SemanticSearch {
*/
@OptIn(DelicateCoroutinesApi::class)
@JvmName("learn")
suspend fun learnCompletableFuture(input: LearnInput) =
fun learnCompletableFuture(input: LearnInput) =
GlobalScope.future { learn(input) }

/**
Expand Down Expand Up @@ -78,7 +78,7 @@ class SemanticSearch {
*/
@OptIn(DelicateCoroutinesApi::class)
@JvmName("search")
suspend fun searchCompletableFuture(text: String, itemsLimit: Int) =
fun searchCompletableFuture(text: String, itemsLimit: Int) =
GlobalScope.future { search(text) }
}

Expand Down

0 comments on commit 830a9ad

Please sign in to comment.