Skip to content

Commit 26c04f5

Browse files
Update syntax to using
1 parent e6539da commit 26c04f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/scala/ActorDSL.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package object dsl {
2323
type Ask[R <: ActorRef[Req], Req, Resp, P <: Process] =
2424
(SendTo[R, Req] >>: ReadDep[Resp, (x: Resp) => Yield[x.type]]) >>: P
2525

26-
type Actor[A, T] = (given ActorCtx[A]) => T
26+
type Actor[A, T] = ActorCtx[A] ?=> T
2727

2828
class Behavior[A, P](body: => Actor[A, P])
2929
extends Function0[Actor[A, P]] {

src/main/scala/ProcessDSL.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ package object dsl {
154154
*
155155
* This is an experimental type, with the goal of modelling the
156156
* [[https://doc.akka.io/docs/akka/2.5/actors.html#ask-send-and-receive-future "ask pattern"]]. */
157-
type Yielding[A, P <: Process] = (given YieldCtx[A]) => P
157+
type Yielding[A, P <: Process] = YieldCtx[A] ?=> P
158158

159159
/** Do nothing (inactive process). */
160160
case object nil extends PNil
@@ -266,7 +266,7 @@ package object dsl {
266266
* This is an experimental method, that can only be invoked within a process
267267
* typed by [[Yielding]]. Its goal is to capture the
268268
* [[https://doc.akka.io/docs/akka/2.5/actors.html#ask-send-and-receive-future "ask pattern"]]. */
269-
def pyield[A](v: A): (given YieldCtx[A]) => Yield[A] = {
269+
def pyield[A](v: A): YieldCtx[A] ?=> Yield[A] = {
270270
Yield[A](v)(Some(implicitly[YieldCtx[A]]))
271271
}
272272

0 commit comments

Comments
 (0)