Skip to content

Commit

Permalink
Adding ScalaDoc to ExecutionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorklang committed Dec 30, 2011
1 parent b34dc4c commit b7cf3e9
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -91,7 +91,16 @@ object ExecutionContext {
implicit def defaultExecutionContext(implicit system: ActorSystem): ExecutionContext = system.dispatcher
}

/**
* An ExecutionContext is essentially the same thing as a java.util.concurrent.Executor
* This interface/trait exists to decouple the concept of execution from Actors & MessageDispatchers
* It is also needed to provide a fallback implicit default instance (in the companion object).
*/
trait ExecutionContext {

/**
* Submits the runnable for execution
*/
def execute(runnable: Runnable): Unit
}

Expand Down

0 comments on commit b7cf3e9

Please sign in to comment.