Skip to content

Commit

Permalink
revise comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCat committed Mar 14, 2015
1 parent 6ad3eb0 commit 6087864
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,7 @@ private[spark] object Utils extends Logging {
}

/**
* Execute a block of code that evaluates to Unit, forwarding any uncaught exceptions to the
* default UncaughtExceptionHandler
* Execute a block of code that evaluates to Unit, stop SparkContext is any uncaught exception
*/
def tryOrStopSparkContext(sc: SparkContext)(block: => Unit) {
try {
Expand Down

0 comments on commit 6087864

Please sign in to comment.