github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/task/common.go (about) 1 package task 2 3 import "v2ray.com/core/common" 4 5 // Close returns a func() that closes v. 6 func Close(v interface{}) func() error { 7 return func() error { 8 return common.Close(v) 9 } 10 }