WithContext instructs the waiter to use the provided context for all operations. If not specified, the waiter will create its own context with testutil.WaitLong timeout.
(ctx context.Context)
| 1313 | // WithContext instructs the waiter to use the provided context for all operations. |
| 1314 | // If not specified, the waiter will create its own context with testutil.WaitLong timeout. |
| 1315 | func (w WorkspaceAgentWaiter) WithContext(ctx context.Context) WorkspaceAgentWaiter { |
| 1316 | //nolint: revive // returns modified struct |
| 1317 | w.ctx = ctx |
| 1318 | return w |
| 1319 | } |
| 1320 | |
| 1321 | // WaitForAgentFn represents a boolean assertion to be made against each agent |
| 1322 | // that a given WorkspaceAgentWaited knows about. Each WaitForAgentFn should apply |
no outgoing calls