akka/akka-core

Expand on closing IncomingConnection in documentation

開放

#19,940 建立於 2016年3月2日

 (4 則留言) (1 個反應) (0 位負責人)Scala (3,547 個分叉)batch import
1 - triagedhelp wantedt:stream

倉庫指標

星標
 (13,277 顆星)
PR 合併指標
 (平均合併 8天 19小時) (30 天內合併 10 個 PR)

描述

At http://doc.akka.io/docs/akka/2.4.2/scala/stream/stream-io.html, the second paragraph after the second code block states:

Closing connections is possible by cancelling the incoming connection Flow from your server logic (e.g. by connecting its downstream to a Sink.cancelled and its upstream to a Source.empty). It is also possible to shut down the server's socket by cancelling the IncomingConnection source connections.

Please provide a code example of how to do this.

貢獻者指南