Last active
January 24, 2018 20:56
-
-
Save gkossakowski/6f2a048b09a416507dda0a9eaa8bdbb7 to your computer and use it in GitHub Desktop.
Definition of an Interruptible completer
This file contains 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
sealed trait Result[T] | |
case class CompletedResult[T](value: T) extends Result[T] | |
case class IncompleteDependency(dep: Symbol) extends Result[T] | |
// completer is: | |
() => Result[T] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typo:
() => Resul[T]
should be() => Result[T]