Bugfix in ThreadedHistory loading: add timeout to event.wait.
Bugfix in ThreadedHistory loading: add timeout to event.wait.

This prevents that Python hangs when the application terminates, but the
history has not yet been done loading.

jonathanslenders/python-prompt-toolkit