Re: [web-nfc] Replace start/stop with scan/AbortController (#300)

According to https://dom.spec.whatwg.org/#abortsignal-abort-algorithms, 

> An AbortSignal object has associated abort algorithms, which is a set of algorithms which are to be executed when its aborted flag is set. 

> To signal abort, given a AbortSignal object signal, run these steps:
> 1. If signal’s aborted flag is set, then return.
> 2. Set signal’s aborted flag.
> 3. For each algorithm in signal’s abort algorithms: run algorithm.
> 4. Empty signal’s abort algorithms.
> 5. Fire an event named abort at signal.

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/300#issuecomment-523388519 using your GitHub account

Received on Wednesday, 21 August 2019 10:00:03 UTC