Skip to content

Commit

Permalink
0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Nov 3, 2019
1 parent 3eefc92 commit 27b5d45
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/pages/1 - Cask: a Scala HTTP micro-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ via the following coordinates:
```scala
// Mill
ivy"com.lihaoyi::cask:0.2.9"
ivy"com.lihaoyi::cask:0.3.3"
// SBT
"com.lihaoyi" %% "cask" % "0.2.9"
"com.lihaoyi" %% "cask" % "0.3.3"
```
The `./mill` command is just a wrapper around the
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/4 - Cask Actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ standalone `cask-actor` artifact:

```scala
// Mill
ivy"com.lihaoyi::cask-actor:0.2.9"
ivy"com.lihaoyi::cask-actor:0.3.3"

// SBT
"com.lihaoyi" %% "cask-actor" % "0.2.9"
"com.lihaoyi" %% "cask-actor" % "0.3.3"
```

Cask Actors are much more lightweight solution than a full-fledged framework
like Akka: Cask Actors do not support any sort of distribution or clustering,
and run entirely within a single process. Cask Actors are garbage collectible,
and you do not need to manually terminate them or manage their lifecycle.

## A Logger Actor
## Example: Asynchronous Logging using an Actor

Here is a small demonstration of using a `cask.actor.SimpleActor` to perform
asynchronous logging to disk:
Expand Down Expand Up @@ -141,7 +141,7 @@ Using Cask Actors to perform logging avoids both these issues: calls to
`logger.send` happen in the background without slowing down your main program,
and multiple threads can call `logger.send` without being blocked by each other.

## Actor Pipelines
## Parallelism using Actor Pipelines

Another advantage of Actors is that you can get pipelined parallelism when
processing data. In the following example, we define two actor classes `Writer`
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ courtesy of EJ Technologies

## Changelog

### 0.3.3

- Separate `cask-actor` into a separate artifact, documented separately as
[Cask Actors](http://www.lihaoyi.com/cask/page/cask-actors.html)

### 0.3.2

- Support for Scala 2.13.1
Expand Down

0 comments on commit 27b5d45

Please sign in to comment.