Merge pull request #26155 from akka/wip-receiveSignal-patriknw
don't show receiveSignal from ExtensibleBehavior in Receive
This commit is contained in:
commit
eaca6de25f
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ import akka.actor.typed.scaladsl.{ ActorContext ⇒ SAC }
|
||||||
*/
|
*/
|
||||||
@ApiMayChange
|
@ApiMayChange
|
||||||
@DoNotInherit
|
@DoNotInherit
|
||||||
sealed abstract class Behavior[T] { behavior ⇒
|
abstract class Behavior[T] { behavior ⇒
|
||||||
/**
|
/**
|
||||||
* Narrow the type of this Behavior, which is always a safe operation. This
|
* Narrow the type of this Behavior, which is always a safe operation. This
|
||||||
* method is necessary to implement the contravariant nature of Behavior
|
* method is necessary to implement the contravariant nature of Behavior
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ object Behaviors {
|
||||||
* signal reception behavior. It's returned by for example [[Behaviors.receiveMessage]].
|
* signal reception behavior. It's returned by for example [[Behaviors.receiveMessage]].
|
||||||
*/
|
*/
|
||||||
@DoNotInherit
|
@DoNotInherit
|
||||||
trait Receive[T] extends ExtensibleBehavior[T] {
|
trait Receive[T] extends Behavior[T] {
|
||||||
def receiveSignal(onSignal: PartialFunction[(ActorContext[T], Signal), Behavior[T]]): Behavior[T]
|
def receiveSignal(onSignal: PartialFunction[(ActorContext[T], Signal), Behavior[T]]): Behavior[T]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue