UWNetworksLab / freedom

Embracing a distributed web
13 stars 5 forks source link

freedom promise mode providers pass on rejects to the caller #51

Closed iislucas closed 10 years ago

iislucas commented 10 years ago

In: https://github.com/UWNetworksLab/freedom/commit/29fc7fc458660a6560f5728d9af18d292dbb747e#diff-fe114d0bfdfaaff66c7a62b5eeeeeaffR215

Freedom now has a 'promises' mode of providers: provides that return a promise instead of taking a continuation argument.

However, it was would really awesome if the reject was correctly propagated to the module that called the provider's method, and it resulted in a promise rejection there. This probably involves specifying a failure type in the Freedom interface API.