forked from ipython/ipykernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default QTimer is coarse, so can fire within +-5% of the time specified. We _need_ to fire after the delay specified so that we exit _after_ schedule_stop_aborting is scheduled. The QTimer thus needs to be a PreciseTimer. For small values of stop_on_error_timeout I found the QTimer _still_ fired up to 5ms too early, so added 10ms of delay offset. singleShot signature is inconsistent between PySide and PyQt, so we store a timer object, similar to ipython#990
- Loading branch information
1 parent
ae69c9c
commit bcafdc2
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters