Merge pull request #25526 from jczuchnowski/fix-25525-stream-docs-imports

Add missing imports for Custom stream processing docs #25525
This commit is contained in:
Patrik Nordwall 2018-09-14 16:24:05 +02:00 committed by GitHub
commit f49a483582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,9 +40,11 @@ class GraphStageDocSpec extends AkkaSpec {
"Demonstrate creation of GraphStage Source" in { "Demonstrate creation of GraphStage Source" in {
//#custom-source-example //#custom-source-example
import akka.stream.Attributes
import akka.stream.Outlet
import akka.stream.SourceShape import akka.stream.SourceShape
import akka.stream.Graph
import akka.stream.stage.GraphStage import akka.stream.stage.GraphStage
import akka.stream.stage.GraphStageLogic
import akka.stream.stage.OutHandler import akka.stream.stage.OutHandler
class NumbersSource extends GraphStage[SourceShape[Int]] { class NumbersSource extends GraphStage[SourceShape[Int]] {