mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-06 07:51:39 -05:00
Do not specify jupyter-send' and
jupyter-stop as specific to
jupyter-channel`
This commit is contained in:
parent
55009e3a0d
commit
d1a344a000
1 changed files with 12 additions and 7 deletions
|
@ -46,22 +46,27 @@
|
|||
|
||||
(cl-defmethod jupyter-start ((channel jupyter-channel) &key identity)
|
||||
"Start a Jupyter CHANNEL using IDENTITY as the routing ID.
|
||||
If CHANNEL is already alive, do nothing.")
|
||||
If CHANNEL is already alive, do nothing."
|
||||
(cl-call-next-method))
|
||||
|
||||
(cl-defmethod jupyter-stop ((channel jupyter-channel))
|
||||
"Stop a Jupyter CHANNEL.
|
||||
If CHANNEL is already stopped, do nothing.")
|
||||
If CHANNEL is already stopped, do nothing."
|
||||
(cl-call-next-method))
|
||||
|
||||
(cl-defmethod jupyter-alive-p ((channel jupyter-channel))
|
||||
"Return non-nil if a CHANNEL is alive.")
|
||||
"Return non-nil if a CHANNEL is alive."
|
||||
(cl-call-next-method))
|
||||
|
||||
(cl-defgeneric jupyter-send (channel type message &optional msg-id)
|
||||
"On CHANNEL send MESSAGE which has message TYPE and optionally a MSG-ID.")
|
||||
(cl-defmethod jupyter-send (channel type message &optional msg-id)
|
||||
"On CHANNEL send MESSAGE which has message TYPE and optionally a MSG-ID."
|
||||
(cl-call-next-method))
|
||||
|
||||
(cl-defgeneric jupyter-recv (channel &optional dont-wait)
|
||||
(cl-defmethod jupyter-recv (channel &optional dont-wait)
|
||||
"Receive a message on CHANNEL.
|
||||
If DONT-WAIT is non-nil, return nil immediately if there is no
|
||||
message available to receive.")
|
||||
message available to receive."
|
||||
(cl-call-next-method))
|
||||
|
||||
(provide 'jupyter-channel)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue