Skip to content

Instantly share code, notes, and snippets.

@dgageot
dgageot / git-build
Created May 16, 2012 08:12
Unbreakeable build
#!/bin/bash
function alert_user {
echo "${1}"
which -s growlnotify && growlnotify `basename $0` -m "${1}"
}
function exit_ko {
alert_user "${1}"; exit 1
}
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]