- From: Kyle Simpson <notifications@github.com>
- Date: Fri, 01 May 2015 08:08:56 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Friday, 1 May 2015 15:09:26 UTC
Just wanted to add another piece of information in support of my suggested "controller" object pattern for `fetch()`'s return value: [Revocable Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/revocable). `Proxy.revocable(..)` returns an object with two properties, the `proxy` itself and the `revoke()` function. This is exactly analogous to what I'm suggesting should be the return value from an `fetch(..)` call, except instead of `revoke()` we should call it `abort()` or `cancel()`, and instead of `proxy` it's `promise`. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-98151690
Received on Friday, 1 May 2015 15:09:26 UTC