Skip to content

Commit

Permalink
refactor: Schedulers.parallel() 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
suw0n committed Jun 24, 2024
1 parent d354bf9 commit dc8e22c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package b1nd.tokenserver.application.common.async

import reactor.core.publisher.Mono
import reactor.core.scheduler.Schedulers
import java.util.concurrent.Callable

class AsyncCPUBoundTask {
Expand All @@ -9,6 +10,7 @@ class AsyncCPUBoundTask {

fun <T> execute(supplier: Callable<T>): Mono<T> {
return Mono.fromCallable(supplier)
.subscribeOn(Schedulers.parallel())
}

}
Expand Down

0 comments on commit dc8e22c

Please sign in to comment.