Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am drewhk on github.
  • I am drewhk (https://keybase.io/drewhk) on keybase.
  • I have a public key ASDLravOhwwMrGUN6l1TTulTbo35AIY2JIZqLvzZWDvtHgo

To claim this, I am signing this object:

@drewhk
drewhk / gist:7c2c14c87cdb7c691751
Created December 17, 2015 14:36
Deadlock dumper
def dumpwaits(): Unit = {
println("digraph waits {")
for (i ← assembly.stages.indices) {
println(s"""N$i [label="${assembly.stages(i)}"]""")
}
for (i ← portStates.indices) {
portStates(i) match {
case InReady ⇒
package akka.stream
import java.net.InetSocketAddress
import java.nio.ByteOrder
import akka.actor.ActorSystem
import akka.stream.io.Framing
import akka.stream.scaladsl.Tcp.ServerBinding
import akka.stream.scaladsl._
import akka.stream.stage.{ TerminationDirective, SyncDirective, Context, PushPullStage }