1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-01-10 20:53:33 +02:00
Xray-core/common/task/common.go
2020-12-04 09:36:16 +08:00

10 lines
192 B
Go

package task
import "github.com/xtls/xray-core/common"
// Close returns a func() that closes v.
func Close(v interface{}) func() error {
return func() error {
return common.Close(v)
}
}