You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2023/01/04 09:50:59 UTC

[GitHub] [incubator-pekko] mdedetrich opened a new pull request, #82: Improve akka-actor-typed initialCommands

mdedetrich opened a new pull request, #82:
URL: https://github.com/apache/incubator-pekko/pull/82

   This PR improves the `akka-actor-typed` `initialCommands` which are executed when you start the Scala REPL shell in the sbt console with `akka-actor-typed/console`. The two main improvements are
   
   * We `import org.apache.pekko` which means that further pekko imports don't need the `org.apache` prefix
   * Also import `scala.language.postfixOps` since especially in an Scala REPL session people often find it more convenient to write `5 seconds` instead of `5.seconds` or `seconds(5)`.
   
   I can confirm that locally the REPL still works on my machine, i.e.
   ```
   [info] Useful sbt tasks:
   [info] >  compile - Compile the current project
   [info] >  test - Run all the tests
   [info] >  testOnly *.AnySpec - Only run a selected test
   [info] >  verifyCodeStyle - Verify code style
   [info] >  applyCodeStyle - Apply code style
   [info] >  sortImports - Sort the imports
   [info] >  mimaReportBinaryIssues  - Check binary issues
   [info] >  validatePullRequest  - Validate pull request
   [info] >  docs/paradox - Build documentation
   [info] >  docs/paradoxBrowse - Browse the generated documentation
   [info] >  tips: - prefix commands with `+` to run against cross Scala versions.
   [info] >  Contributing guide: - https://github.com/apache/incubator-pekko/blob/main/CONTRIBUTING.md
   [info] sbt server started at local:///Users/mdedetrich/.sbt/1.0/server/62a7cea246d563e33631/sock
   [info] started sbt server
   pekko > akka-actor-typed/console
   [info] compiling 1 Scala source to /Users/mdedetrich/github/incubator-pekko/akka-actor/target/scala-2.13/classes ...
   [info] Starting scala interpreter...
   Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_352).
   Type in expressions for evaluation. Or try :help.
   import org.apache.pekko
   import pekko.actor.typed._
   import pekko.actor.typed.scaladsl.Behaviors
   import pekko.util.Timeout
   import scala.concurrent._
   import scala.concurrent.duration._
   import scala.language.postfixOps
   val timeout: org.apache.pekko.util.Timeout = Timeout(5 seconds)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] mdedetrich merged pull request #82: Improve akka-actor-typed initialCommands

Posted by GitBox <gi...@apache.org>.
mdedetrich merged PR #82:
URL: https://github.com/apache/incubator-pekko/pull/82


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org