Skip to content

Commit

Permalink
Release notes and further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
philcali committed Jan 6, 2013
1 parent 7b90ea4 commit 398c75a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions notes/0.1.3.markdown
@@ -0,0 +1,4 @@
## 0.1.3

- Scala 2.10.0
- Underlying actor implementation switched to Akka
10 changes: 8 additions & 2 deletions src/main/scala/task.scala
Expand Up @@ -30,9 +30,15 @@ object Scheduled {
def destroy(old: Scheduled) = crons -= old

@deprecated("Use Scheduled.shutdown instead")
def destroyAll = crons foreach (_.stop)
def destroyAll = {
crons foreach (_.stop)
shutdown()
}

def shutdown() = pool.shutdown
def shutdown() = {
crons.clear()
pool.shutdown
}

def active = crons.toList

Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/cron-run.scala
Expand Up @@ -40,7 +40,7 @@ object Main {
val advancedJob = thisJob starts {
println ("I'm starting up!")
} catches {
case e: Exception =>
case e: Exception =>
println("This is horrible: %s".format(e.getMessage))
} ends {
println ("I'm stopping now")
Expand Down

0 comments on commit 398c75a

Please sign in to comment.