Skip to content
Snippets Groups Projects
  • 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.