(ctx context.Context, sctx *super.Context)
| 19 | } |
| 20 | |
| 21 | func NewContext(ctx context.Context, sctx *super.Context) *Context { |
| 22 | ctx, cancel := context.WithCancel(ctx) |
| 23 | return &Context{ |
| 24 | Context: ctx, |
| 25 | cancel: cancel, |
| 26 | Sctx: sctx, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func DefaultContext() *Context { |
| 31 | return NewContext(context.Background(), super.NewContext()) |
no outgoing calls