Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Stoppable.Noop

  • Loading branch information...
commit 44512133a2795c44451e71d19cbd75306825fbc3 1 parent e505f9d
@nuttycom nuttycom authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 bkka/src/main/scala/blueeyes/bkka/Stoppable.scala
View
5 bkka/src/main/scala/blueeyes/bkka/Stoppable.scala
@@ -62,6 +62,11 @@ object Stoppable extends Logging {
val dependents = Nil
}
+ def Noop(implicit executor: ExecutionContext): Stoppable = new Stoppable {
+ protected lazy val stop = Promise.successful(())
+ val dependents = Nil
+ }
+
implicit object semigroup extends Semigroup[Stoppable] {
def append(a: Stoppable, b: => Stoppable): Stoppable = a append b
}
Please sign in to comment.
Something went wrong with that request. Please try again.