This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package batches.test | |
import scala.concurrent.{Promise, ExecutionContext, Future} | |
import scala.util.{Failure, Success} | |
object impl { | |
case class Step[T](step: T, e: Exception) extends RuntimeException() | |
implicit final class StepableFuture[A](future: Future[A]) { | |
def withStep[T](name: T)(implicit ec: ExecutionContext): Future[A] = { | |
val p = Promise[A] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function alert_user { | |
echo "${1}" | |
which -s growlnotify && growlnotify `basename $0` -m "${1}" | |
} | |
function exit_ko { | |
alert_user "${1}"; exit 1 | |
} |