Merge pull request #30514 from ygree/context-propagation-improvement

ContextPropagation enhancement
This commit is contained in:
Yury Gribkov 2021-08-11 12:31:15 -04:00 committed by GitHub
commit c1228ce8b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,3 @@
# internal
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.impl.ContextPropagation.currentContext")
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.impl.ContextPropagation.resumeContext")

View file

@ -9,15 +9,17 @@ import akka.annotation.InternalApi
/**
* INTERNAL API
*/
@InternalApi private[akka] trait ContextPropagation {
@InternalApi trait ContextPropagation {
def suspendContext(): Unit
def resumeContext(): Unit
def currentContext(): AnyRef
def resumeContext(context: AnyRef): Unit
}
/**
* INTERNAL API
*/
@InternalApi private[akka] object ContextPropagation {
@InternalApi object ContextPropagation {
/**
* INTERNAL API
@ -28,4 +30,6 @@ import akka.annotation.InternalApi
private[akka] final class ContextPropagationImpl extends ContextPropagation {
def suspendContext(): Unit = ()
def resumeContext(): Unit = ()
def currentContext(): AnyRef = null
def resumeContext(context: AnyRef): Unit = ()
}