Rohan Sircar
cb9524eac7
Rewrote slick db service using monix task instead of future Added cats IO to controller to make use of above db service Added action methods that support effect wrappers other than future Added play-flyway to auto-manage migrations Moved migration files to appropriate directory as a result of above Added cors filter to work with separately hosted frontend Made logger log at debug
19 lines
396 B
Scala
19 lines
396 B
Scala
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
|