Skip to content

Instantly share code, notes, and snippets.

@negator
Last active December 10, 2015 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save negator/4371030 to your computer and use it in GitHub Desktop.
Save negator/4371030 to your computer and use it in GitHub Desktop.
Hook up Enumerator to Enumeratee to Iteratee and run it
//The collect function below returns an Enumerator[Activity], given some target meta-data
val iterateePromise = collect(target) &> fileWriting |>> updatingCursor
iterateePromise.flatMap(_.run)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment