Open
Description
We should clarify what the semantics of shutdown
are.
I think the following definition could make sense:
When a shutdown
signal is received by the client
- It keeps processing already inflight tasks (following redirect, downloading / uploading, etc ...)
- It cancels tasks that are waiting to be processed
- It errors new tasks that are being scheduled after the signal was received
- Once all tasks have either failed or finished, if it owns the event loop it stops the event loop.
I think at the moment there is no queue of pending tasks, so point two is maybe not relevant yet.