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

Method PublishExecutionInput

messages.go:228–238  ·  view source on GitHub ↗

PublishExecutionInput publishes a status message notifying front-ends of what code is currently being executed.

(execCount int, code string)

Source from the content-addressed store, hash-verified

226// PublishExecutionInput publishes a status message notifying front-ends of what code is
227// currently being executed.
228func (receipt *msgReceipt) PublishExecutionInput(execCount int, code string) error {
229 return receipt.Publish("execute_input",
230 struct {
231 ExecCount int `json:"execution_count"`
232 Code string `json:"code"`
233 }{
234 ExecCount: execCount,
235 Code: code,
236 },
237 )
238}
239
240func ensure(bundle MIMEMap) MIMEMap {
241 if bundle == nil {

Callers 1

handleExecuteRequestMethod · 0.80

Calls 1

PublishMethod · 0.95

Tested by

no test coverage detected