20 lines
489 B
Scala
20 lines
489 B
Scala
|
|
/*
|
||
|
|
* Copyright (C) 2009-2021 Lightbend Inc. <https://www.lightbend.com>
|
||
|
|
*/
|
||
|
|
|
||
|
|
package akka.dispatch.internal
|
||
|
|
|
||
|
|
import scala.concurrent.ExecutionContext
|
||
|
|
|
||
|
|
import akka.annotation.InternalApi
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Factory to create same thread ec. Not intended to be called from any other site than to create [[akka.dispatch.ExecutionContexts#parasitic]]
|
||
|
|
*
|
||
|
|
* INTERNAL API
|
||
|
|
*/
|
||
|
|
@InternalApi
|
||
|
|
private[dispatch] object SameThreadExecutionContext {
|
||
|
|
def apply(): ExecutionContext = ExecutionContext.parasitic
|
||
|
|
}
|