MCPcopy Create free account
hub / github.com/dagger/dagger / beginClosing

Method beginClosing

engine/server/session.go:369–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367var errSessionClosing = errors.New("session is closing")
368
369func (sess *daggerSession) beginClosing() {
370 sess.closeClosingOnce.Do(func() {
371 if sess.cancelClosing != nil {
372 sess.cancelClosing(errSessionClosing)
373 }
374 })
375}
376
377func (sess *daggerSession) withClosingCancel(ctx context.Context) context.Context {
378 ctx, cancel := context.WithCancelCause(ctx)

Callers 2

removeDaggerSessionMethod · 0.80
serveShutdownMethod · 0.80

Calls 1

DoMethod · 0.45

Tested by

no test coverage detected