Created
May 6, 2014 16:01
-
-
Save sprsquish/5ab2b8d07f4fa4cff06d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val closeFuture = new Promise[Unit] | |
val c = new ClientConnection { | |
def remoteAddress: SocketAddress = null | |
def localAddress: SocketAddress = null | |
def onClose: Future[Unit] = closeFuture | |
def close(deadline: Time): Future[Unit] = { | |
closeFuture.setDone() | |
closeFuture | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment