pekko/akka-docs/src/main/paradox/stream/operators/Sink/fromMaterializer.md

18 lines
532 B
Markdown
Raw Normal View History

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)
@@@ div { .group-scala }
## Signature
@@signature [Sink.scala](/akka-stream/src/main/scala/akka/stream/scaladsl/Sink.scala) { #fromMaterializer }
2020-04-27 16:40:57 +02:00
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.
Can also be used to access the underlying `ActorSystem` from `Materializer`.