MCPcopy
hub / github.com/purpleidea/mgmt / Done

Method Done

lang/interfaces/func.go:217–217  ·  view source on GitHub ↗

implement everything in Func but add the additional requirements Done tells the function that it will never be called again. This will get called a maximum of once, and before Cleanup is called if it is present.

()

Source from the content-addressed store, hash-verified

215 // get called a maximum of once, and before Cleanup is called if it is
216 // present.
217 Done() error // TODO: Should we return an error?
218}
219
220// BuildableFunc is an interface for functions which need a Build or Check step.

Callers 15

QuitMethod · 0.65
waitMethod · 0.65
TestAstFunc2Function · 0.65
TestAstFunc3Function · 0.65
runInterpretFunction · 0.65
RunMethod · 0.65
processMethod · 0.65
eventMethod · 0.65
CallMethod · 0.65
StreamMethod · 0.65
CallMethod · 0.65
StreamMethod · 0.65

Implementers 10

ReadFileFunclang/core/os/readfile.go
ReadFileWaitFunclang/core/os/readfilewait.go
FileExistsFunclang/core/os/file_exists.go
SystemFunclang/core/os/system.go
ForLoopFunclang/core/test/forlooptest.go
ForKVLoopFunclang/core/test/forkvlooptest.go
gzipDelayedCancelContextengine/resources/gzip_test.go
tarOutputCancelContextengine/resources/tar_test.go
EasyOnceutil/sync.go
EasyExitutil/sync.go

Calls

no outgoing calls

Tested by 15

TestAstFunc2Function · 0.52
TestAstFunc3Function · 0.52
runInterpretFunction · 0.52
CallMethod · 0.52
newFakeInitFunction · 0.52
TestResources1Function · 0.52