Quantcast
Channel: How to abruptly stop an akka stream Runnable Graph? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by lpiepiora for How to abruptly stop an akka stream Runnable Graph?

Since Akka Streams 2.4.3, there is an elegant way to stop the stream from the outside via KillSwitch. Consider the following example, which stops stream after 10 seconds. object ExampleStopStream...

View Article



Answer by ASe for How to abruptly stop an akka stream Runnable Graph?

The one way have a service or shutdownhookup which can call graph cancellable val graph= Source.tick(FiniteDuration(0,TimeUnit.SECONDS), FiniteDuration(1,TimeUnit.SECONDS),...

View Article

How to abruptly stop an akka stream Runnable Graph?

I am not able to figure out how to stop akka stream Runnable Graph immediately ? How to use killswitch to achieve this? It has been just a few days that I started akka streams. In my case I am reading...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images