You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
396 B
18 lines
396 B
package util
|
|
|
|
import monix.execution.Scheduler
|
|
|
|
/**
|
|
* Class containing various schedulers for offloading blocking tasks
|
|
* from play's default thread pool
|
|
*
|
|
* @param dbScheduler
|
|
* @param cpuScheduler
|
|
*/
|
|
trait Schedulers {
|
|
def dbScheduler: Scheduler
|
|
def cpuScheduler: Scheduler
|
|
}
|
|
|
|
class SchedulersImpl(val dbScheduler: Scheduler, val cpuScheduler: Scheduler)
|
|
extends Schedulers
|