RoyalIcing / Syrup

Asynchronous data flow in Swift using enums

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ProgressionError

RoyalIcing opened this issue · comments

Add ProgressionError that captures what step the progression was at when an error was thrown.

struct ProgressionError<P : Progression, Inner : Swift.Error> : Swift.Error {
  var progress: P
  var innerError: Inner
}

Could possibly require that Progression has associated type of Error? Would simplify this a tiny bit