Richard Searle

home

Wrong kind of Seq

03 Jun 2015

The API contains the following factory method

def apply[T](iterable: Iterable[T]): Source[T, Unit]

With an example

Source(Seq(1,2,3))

This fails to compile with a huge error message referencing an overload mismatch.

This failure occurs since the default Seq is mutable and the Akka API expects the immutable form. It is necessary to explicitly import the immutable form.