Xray-core/common/task/common.go

11 lines
192 B
Go
Raw Normal View History

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