Sink.setup
Defer the creation of a Sink
until materialization and access ActorMaterializer
and Attributes
Signature
def setup[T, M](factory: (ActorMaterializer, Attributes) ⇒ Sink[T, M]): Sink[T, Future[M]]
Description
Typically used when access to materializer is needed to run a different stream during the construction of a sink. Can also be used to access the underlying ActorSystem
from ActorMaterializer
.