Skip to content
Snippets Groups Projects
  1. Feb 02, 2022
  2. Feb 10, 2021
  3. Jul 14, 2020
  4. Jul 01, 2020
    • Reiter, Christoph's avatar
      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
    • Reiter, Christoph's avatar
      Add an event bus implementation · 33b7f02b
      Reiter, Christoph authored
      This generalizes the features of the events module and should replace it in the long run.
      
      It allows simple pub/sub and retained events without a centralized instance.
      33b7f02b
Loading