2018-05-27 07:02:29 -04:00
|
|
|
package task
|
|
|
|
|
|
|
|
import "v2ray.com/core/common"
|
|
|
|
|
2018-12-06 05:35:02 -05:00
|
|
|
// Close returns a func() that closes v.
|
|
|
|
func Close(v interface{}) func() error {
|
2018-05-27 07:02:29 -04:00
|
|
|
return func() error {
|
|
|
|
return common.Close(v)
|
|
|
|
}
|
|
|
|
}
|