Skip to content

Commit

Permalink
add @SInCE annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Roiocam committed Aug 27, 2024
1 parent 0c76ad9 commit 28a9ac6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ object Behaviors {
* Compared to using [[AbstractBehavior]] this factory is a more functional style
* of defining the `Behavior`. Processing the next message will not result in
* different behavior than this one
*
* @since 1.1.0
*/
def receiveMessageWithSame[T](onMessage: pekko.japi.Procedure[T]): Behavior[T] =
new BehaviorImpl.ReceiveBehavior((_, msg) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ object Behaviors {
* Compared to using [[AbstractBehavior]] this factory is a more functional style
* of defining the `Behavior`. Processing the next message will not result in
* different behavior than this one
*
* @since 1.1.0
*/
def receiveMessageWithSame[T](onMessage: T => Unit): Receive[T] = {
new ReceiveMessageImpl(onMessage.andThen(_ => same))
Expand Down

0 comments on commit 28a9ac6

Please sign in to comment.