MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / newCloser

Function newCloser

cmd/perf/cmd.go:53–57  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

51}
52
53func newCloser(ctx context.Context) *closer {
54 c := &closer{}
55 c.ctx, c.cancel = context.WithCancel(ctx)
56 return c
57}
58
59func (c *closer) Close() error {
60 c.cancel()

Callers 1

runPerfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected