Xray-core/common/task/common.go

11 lines
192 B
Go
Raw Normal View History

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