WebMemex / freeze-dry

Snapshots a web page to get it as a static, self-contained HTML document.
https://freezedry.webmemex.org
The Unlicense
271 stars 18 forks source link

Allow getting the result before completion. #9

Closed Treora closed 2 years ago

Treora commented 7 years ago

A slow refetch of a resource can now slow down the whole procedure. To allow more control, we could accept a timeout as an argument, and return whatever is ready at that moment. But rather, I would let the application request the result when it wants to have it, which it could possibly do multiple times (we could e.g. emit an event when the intermediate result has been updated).

Treora commented 6 years ago

Timeout has already been implemented (commit bb747a1). More control would be really pleasant, so keeping this issue open.

Treora commented 2 years ago

The FreezeDryer class now permits getting the result before completion.