mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Optimize jupyter-request-id
This commit is contained in:
parent
fec7183933
commit
f445e6d951
1 changed files with 5 additions and 4 deletions
|
@ -138,10 +138,11 @@ from the kernel.")
|
|||
|
||||
(defun jupyter-request-id (req)
|
||||
"Get the message ID for REQ."
|
||||
(with-timeout (0.5 (error "Request not processed"))
|
||||
(while (null (jupyter-request--id req))
|
||||
(sleep-for 0 10)))
|
||||
(jupyter-request--id req))
|
||||
(or (jupyter-request--id req)
|
||||
(with-timeout (0.5 (error "Request not processed"))
|
||||
(while (null (jupyter-request--id req))
|
||||
(sleep-for 0 10))
|
||||
(jupyter-request--id req))))
|
||||
|
||||
(provide 'jupyter-base)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue