MCPcopy Create free account
hub / github.com/compozy/agh / waitForBlocked

Method waitForBlocked

internal/cli/cli_integration_test.go:3979–3991  ·  view source on GitHub ↗
(sessionID string, timeout time.Duration)

Source from the content-addressed store, hash-verified

3977}
3978
3979func (d *integrationDriver) waitForBlocked(sessionID string, timeout time.Duration) bool {
3980 deadline := time.Now().Add(timeout)
3981 for time.Now().Before(deadline) {
3982 d.mu.Lock()
3983 _, ok := d.blocked[sessionID]
3984 d.mu.Unlock()
3985 if ok {
3986 return true
3987 }
3988 time.Sleep(10 * time.Millisecond)
3989 }
3990 return false
3991}
3992
3993func (d *integrationDriver) Cancel(context.Context, *session.AgentProcess) error {
3994 return nil

Calls 2

AddMethod · 0.45
NowMethod · 0.45

Tested by

no test coverage detected