-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add abort control over Device Flow Handle polling (#357)
Example using AbortController. ```js const ac = new AbortController() setTimeout(() => ac.abort(), 10000) try { await handle.poll({ signal: ac.signal }) } catch (err) { console.log(err) } ``` Example using handle.abort(). ```js setTimeout(() => handle.abort(), 10000) try { await handle.poll({ signal: ac.signal }) } catch (err) { console.log(err) } ``` resolves #355 closes #356
- Loading branch information
Showing
3 changed files
with
125 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters