Be more careful about future done promises being wrapped up when clearing kernel state.
Be more careful about future done promises being wrapped up when clearing kernel state.

Before, as soon as one kernel future rejected, clearState would return. Now all outstanding futures must resolve or reject before the state is considered cleared.
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab