Skip to content

Instantly share code, notes, and snippets.

@gkossakowski
Last active January 24, 2018 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkossakowski/6f2a048b09a416507dda0a9eaa8bdbb7 to your computer and use it in GitHub Desktop.
Save gkossakowski/6f2a048b09a416507dda0a9eaa8bdbb7 to your computer and use it in GitHub Desktop.
Definition of an Interruptible completer
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]
@Zeimyth
Copy link

Zeimyth commented Dec 31, 2016

Typo: () => Resul[T] should be () => Result[T]

@gkossakowski
Copy link
Author

fixed, thank you!

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