()
| 101 | } |
| 102 | |
| 103 | func (c *agentClientV2) Close() error { |
| 104 | defer c.cancel() |
| 105 | return c.flush() |
| 106 | } |
| 107 | |
| 108 | func newAgentClientV2(ctx context.Context, logger slog.Logger, client *agentsdk.Client) (CoderClient, error) { |
| 109 | cctx, cancel := context.WithCancel(ctx) |