MCPcopy Index your code
hub / github.com/coder/coder / wait

Method wait

coderd/x/chatd/chattool/computeruse.go:335–346  ·  view source on GitHub ↗
(ctx context.Context, durationMillis int64)

Source from the content-addressed store, hash-verified

333}
334
335func (t *computerUseTool) wait(ctx context.Context, durationMillis int64) {
336 d := durationMillis
337 if d <= 0 {
338 d = 1000
339 }
340 timer := t.clock.NewTimer(time.Duration(d)*time.Millisecond, "computeruse", "wait")
341 defer timer.Stop()
342 select {
343 case <-ctx.Done():
344 case <-timer.C:
345 }
346}
347
348func coordinateFromInt64(x, y int64) [2]int {
349 return [2]int{int(x), int(y)}

Callers 2

runOpenAIComputerUseMethod · 0.95

Calls 3

DurationMethod · 0.80
StopMethod · 0.65
DoneMethod · 0.45

Tested by

no test coverage detected