MCPcopy Create free account
hub / github.com/godbus/dbus / GoWithContext

Method GoWithContext

object.go:97–99  ·  view source on GitHub ↗

GoWithContext acts like Go but takes a context

(ctx context.Context, method string, flags Flags, ch chan *Call, args ...any)

Source from the content-addressed store, hash-verified

95
96// GoWithContext acts like Go but takes a context
97func (o *Object) GoWithContext(ctx context.Context, method string, flags Flags, ch chan *Call, args ...any) *Call {
98 return o.createCall(ctx, method, flags, ch, args...)
99}
100
101func (o *Object) createCall(ctx context.Context, method string, flags Flags, ch chan *Call, args ...any) *Call {
102 if ctx == nil {

Callers

nothing calls this directly

Calls 1

createCallMethod · 0.95

Tested by

no test coverage detected