Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val outputListing: FullListing = //...
val inputListing: RawListing = //...
val save = new MemorySink[ListingResults]
val processor = new ListingProcessor(_ => Task.now(Some(outputListing)), save)

processor.processListing(Seq(inputListing))
// resolve asynchrony

save.last should beSome(Seq(outputListing))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment