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)
|
|
|
|
}
|
|
|
|
}
|