2019-09-05 16:08:37 +02:00
|
|
|
# Sink.fromMaterializer
|
|
|
|
|
|
|
|
|
|
Defer the creation of a `Sink` until materialization and access `Materializer` and `Attributes`
|
|
|
|
|
|
|
|
|
|
@ref[Sink operators](../index.md#sink-operators)
|
|
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
2020-05-06 11:17:53 +02:00
|
|
|
@apidoc[Sink.fromMaterializer](Sink$) { scala="#fromMaterializer[T,M](factory:(akka.stream.Materializer,akka.stream.Attributes)=>akka.stream.scaladsl.Sink[T,M]):akka.stream.scaladsl.Sink[T,scala.concurrent.Future[M]]" java="#fromMaterializer(java.util.function.BiFunction)" }
|
2019-09-05 16:08:37 +02:00
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
|
|
Typically used when access to materializer is needed to run a different stream during the construction of a sink.
|
2020-05-06 11:17:53 +02:00
|
|
|
Can also be used to access the underlying `ActorSystem` from `Materializer`.
|