Re: [web-nfc] add a cancelAll() instead of cancelPush()

The other option people are exploring are CancellationTokens which 
would then basically be a special kind of Promise which you pass to 
the method.

```
CancellationToken t;
watch(..., t).then(...);
t.cancel();
```

Then watch would basically be a Promise.race between an internal 
promise and the cancellation token.

-- 
GitHub Notif of comment by kenchris
See https://github.com/w3c/web-nfc/issues/86#issuecomment-153362699

Received on Tuesday, 3 November 2015 14:01:15 UTC