chicago-brick
chicago-brick copied to clipboard
Provide API to handle async tasks in modules
Today, module authors can use whatever strategy to download images or play animations or whatever other async work. However, it's trivially possible to forget to cancel this work, for example, when retrying a failed download.
Provide module authors with an API that ensures that no such work gets left behind when the module is cleaned up.