Skip to content

Instantly share code, notes, and snippets.

@taylorleese
Created June 4, 2012 20:39
Show Gist options
  • Save taylorleese/2870739 to your computer and use it in GitHub Desktop.
Save taylorleese/2870739 to your computer and use it in GitHub Desktop.
Airbrake Example Actor Usage
def notifyAsync(notice: AirbrakeNotice) {
submitAsync(() => notify(prepareRequest(notice)).unsafePerformIO)
}
def submitAsync(f: () => Validation[Throwable, Int]) {
getRandomActor(f)
}
def getRandomActor: Actor[() => Validation[Throwable, Int]] = {
actorList(random.nextInt(actorList.length))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment