Skip to content

Instantly share code, notes, and snippets.

@edgarchan
Last active December 19, 2015 05:39
Show Gist options
  • Save edgarchan/5905937 to your computer and use it in GitHub Desktop.
Save edgarchan/5905937 to your computer and use it in GitHub Desktop.
trait delegator
trait Delegator[T]{
protected def internal:T
}
trait ReadStream[T <: JReadStream[T]] extends ExceptionSupport[T] { self: Delegator[T] =>
trait WriteStream[T <: JWriteStream[T]] extends ExceptionSupport[T] { self: Delegator[T] =>
class AsyncFile(protected val internal: JAsyncFile) extends Delegator[JAsyncFile] with ReadStream[JAsyncFile] with WriteStream[JAsyncFile]
@swilliams-pivotal
Copy link

Like it. We'll do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment