Skip to content
Snippets Groups Projects
Select Git revision
  • 381ae861ed0b3c35b6d2f84d4433a2f7aaabe52e
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

abort.js

  • Reiter, Christoph's avatar
    befe70ea
    Add AbortController related helpers · befe70ea
    Reiter, Christoph authored
    These allow linking multiple AbortControllers and ceate a timeout abort signal.
    
    For example in case you want to abort a fetch in case
    
    (1) the UI element gets removed
    (2) a newer request replacing this one gets started
    (3) a timeout happens because the fetch takes too long
    
    createLinkedAbortController() allows merging multiple signals into one
    and createTimeoutAbortSignal() allows creating a singal that auto aborts
    after some time passes.
    befe70ea
    History
    Add AbortController related helpers
    Reiter, Christoph authored
    These allow linking multiple AbortControllers and ceate a timeout abort signal.
    
    For example in case you want to abort a fetch in case
    
    (1) the UI element gets removed
    (2) a newer request replacing this one gets started
    (3) a timeout happens because the fetch takes too long
    
    createLinkedAbortController() allows merging multiple signals into one
    and createTimeoutAbortSignal() allows creating a singal that auto aborts
    after some time passes.