MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / closeFiles

Function closeFiles

executor/runtime.go:393–401  ·  view source on GitHub ↗
(files []interface{})

Source from the content-addressed store, hash-verified

391}
392
393func closeFiles(files []interface{}) {
394 for _, f := range files {
395 if fi, ok := f.(*os.File); ok {
396 fi.Close()
397 } else if fd, ok := f.(uintptr); ok {
398 _ = syscall.Close(int(fd))
399 }
400 }
401}

Callers 2

runAsyncFunction · 0.85
runInteractiveAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected