MCPcopy Index your code
hub / github.com/gopherdata/gophernotes / PublishKernelStatus

Method PublishKernelStatus

messages.go:216–224  ·  view source on GitHub ↗

PublishKernelStatus publishes a status message notifying front-ends of the state the kernel is in. Supports states "starting", "busy", and "idle".

(status string)

Source from the content-addressed store, hash-verified

214// PublishKernelStatus publishes a status message notifying front-ends of the state the kernel is in. Supports
215// states "starting", "busy", and "idle".
216func (receipt *msgReceipt) PublishKernelStatus(status string) error {
217 return receipt.Publish("status",
218 struct {
219 ExecutionState string `json:"execution_state"`
220 }{
221 ExecutionState: status,
222 },
223 )
224}
225
226// PublishExecutionInput publishes a status message notifying front-ends of what code is
227// currently being executed.

Callers 1

handleShellMsgMethod · 0.80

Calls 1

PublishMethod · 0.95

Tested by

no test coverage detected