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

Method Cancel

provisionerd/runner/runner.go:258–260  ·  view source on GitHub ↗

Cancel initiates a Cancel on the job, but allows it to keep running to do so gracefully. Read from Done() to be notified when the job completes.

()

Source from the content-addressed store, hash-verified

256// Cancel initiates a Cancel on the job, but allows it to keep running to do so gracefully. Read from Done() to
257// be notified when the job completes.
258func (r *Runner) Cancel() {
259 r.cancel()
260}
261
262func (r *Runner) Done() <-chan struct{} {
263 return r.done

Callers 4

FailMethod · 0.95
heartbeatRoutineMethod · 0.95
ShutdownMethod · 0.45
TestAgentScriptFunction · 0.45

Calls 1

cancelMethod · 0.45

Tested by 1

TestAgentScriptFunction · 0.36