MCPcopy Index your code
hub / github.com/Monibuca/engine / SetParentCtx

Method SetParentCtx

io.go:77–79  ·  view source on GitHub ↗

SetParentCtx(可选)

(parent context.Context)

Source from the content-addressed store, hash-verified

75
76// SetParentCtx(可选)
77func (i *IO) SetParentCtx(parent context.Context) {
78 i.Context, i.CancelCauseFunc = context.WithCancelCause(parent)
79}
80
81func (i *IO) SetLogger(logger *log.Logger) {
82 i.Logger = logger

Callers 1

receiveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected