Xray-core/common/task/common.go

11 lines
195 B
Go
Raw Normal View History

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