HttpRequestsAsTheyComplete.onInterruption

You can set this delegate to decide how to handle an interruption. Returning true from this will keep working. Returning false will terminate the loop.

If this is null, an interruption will always terminate the loop.

Note that interruptions can be caused by the garbage collector being triggered by another thread as well as by user action. If you don't set a SIGINT handler, it might be reasonable to always return true here.

struct HttpRequestsAsTheyComplete
bool delegate() onInterruption;

Meta