Xray-core/common/task/common.go

11 lines
192 B
Go
Raw Normal View History

2020-11-25 13:01:53 +02:00
package task
2020-12-04 03:36:16 +02:00
import "github.com/xtls/xray-core/common"
2020-11-25 13:01:53 +02:00
// Close returns a func() that closes v.
func Close(v interface{}) func() error {
return func() error {
return common.Close(v)
}
}