Defer the creation of a Sink until materialization and access Materializer and Attributes

Sink operators


def fromMaterializer[T, M](factory: (Materializer, Attributes) => Sink[T, M]): Sink[T, Future[M]]


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 Materializer.

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.