Skip to content

Typed Errors

Compare
Choose a tag to compare
@glessard glessard released this 19 Feb 23:57

Major update to deferred, adding typed errors as a generic parameter, using the same parameter names as the standard library's Result.

Another major change involves execution scheduling: execution now starts only once a Deferred's result has been explicitly requested in some way. The notify method is the primary way to accomplish this (along with onValue and onError), as well an explicit call to beginExecution().

Finally, the URLSessionTask wrapper has been moved to its own package, DeferredHTTP.